https://kotlinlang.org logo
#coroutines
Title
# coroutines
e

enleur

09/26/2018, 9:16 PM
I see
currentScope
is deprecated now. How should we run launch inside
suspend fun
now? Something like this
CoroutineScope(coroutineContext).launch {  }
?
v

Vsevolod Tolstopyatov [JB]

09/26/2018, 9:22 PM
you should have a coroutine scope somewhere. Preferably class where this suspend fun is declared should implement
CoroutineScope
👍 1
e

elizarov

09/27/2018, 6:01 AM
Inside suspend fun use coroutineScope
3 Views