Join Slack
Powered by
Think about it this way: a `Consumer<T?>` ca...
# getting-started
k
karelpeeters
05/11/2019, 5:48 PM
Think about it this way: a
Consumer<T?>
can only accept
T?
, while a
Consumer<Any?>
must
be able to accept anything at all! So no, a
Consumer<T?>
isn't a
Consumer<Any?>
, in fact it's the other way around.
Open in Slack
Previous
Next