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