https://kotlinlang.org logo
Title
n

Nikky

10/29/2018, 7:31 PM
you will be able to call it like this:
with(watcher) { watcherStarted() }
@jcechace
z

zjuhasz

11/01/2018, 12:31 AM
@Nikky is this different than just calling
watcher.watcherStarted()
?
n

Nikky

11/01/2018, 1:43 AM
yes, this way you can use extension function on CoroutineScope inside some class
z

zjuhasz

11/01/2018, 1:45 AM
So what
CoroutineScope
would it use?
Just whatever is currently visible same as if it were a top level function?
n

Nikky

11/01/2018, 1:55 AM
well this would be called either inside some launch / async / runBLocking or in a extension function on CoroutineScope
z

zjuhasz

11/01/2018, 2:04 AM
yeah, that's pretty cool. I didn't know that would work.