Join Slack
Powered by
you can use ``` interface <in T> TaskListen...
# announcements
m
menegatti
02/14/2018, 1:54 PM
you can use
Copy code
interface <in T> TaskListener { fun onTaskComplete(results: Map<Int, List<T>>) }
which will prevent
T
from being erased at runtime, as opposed to the star projection
which will give the compiler a tip that
T
is safe to be used as the type you passed
🤘 1
5
Views
Open in Slack
Previous
Next