Join Slack
Powered by
Also, with extension functions you can do things y...
# announcements
o
orangy
05/08/2016, 6:52 PM
Also, with extension functions you can do things you can't do with member functions. For example, if I have
Foo<T>
, and I want to be able to perform specific operations on some of the
T
variants. E.g.
Copy code
fun Foo<Unit>.runAsync() : Unit fun <T> Foo<T>.queryAsync() : Future<T>
6
Views
Open in Slack
Previous
Next