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

enleur

10/13/2018, 7:46 PM
Copy code
suspend fun whatever() = coroutineScope{
    while(isActive){ ... }
}
g

gildor

10/14/2018, 2:48 AM
@Paul Woitaschek You don’t need coroutineScope in this case, you have coroutineContext available in any suspend function, same as isActive extension function, so just omit coroutineScope
3 Views