Marc Knaup
01/01/2021, 4:10 PMwithContext(scope1.coroutineContext) {
withContext(scope2.coroutineContext) {
doSomeWork()
}
}
Similarly with `Job`:
val context2 = scope1.coroutineContext + SupervisorJob()
withContext(scope1.coroutineContext) {
withContext(context2) {
doSomeWork()
}
}
Would the cancellation of one context affect the other context?
Is that the proper way to do that?Dominaezzz
01/01/2021, 4:34 PMMarc Knaup
01/01/2021, 4:55 PM