Grigorii Yurkov
10/29/2020, 6:44 PM@Composable
val composableScope: CoroutineScope
get() {
val context = SupervisorJob() + Dispatchers.Main.immediate
onDispose {
context.cancel()
}
return CoroutineScope(context)
}
Or maybe there is out-of-the-box solution?Leland Richardson [G]
10/29/2020, 6:45 PMrememberCoroutineScope()