Daniel
10/16/2020, 10:50 AMval parentScope: CoroutineScope
val childScope = parentScope.something()
I want childScope to be cancelled if parentScope is, but for parentScope not to be cancelled if childScope isMarc Knaup
10/16/2020, 11:01 AMCoroutineScope(parentScope.coroutineContext + SupervisorJob())
or
supervisorScope { your child code() }
Daniel
10/16/2020, 11:49 AM