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

obobo

10/07/2020, 7:47 PM
if i create a
CoroutineScope
with a
SupervisorJob()
and
launch
off it, will CoroutineScopes created from its
coroutineContext
inherit the SupervisorJob properties? if that second scope launches its own coroutines, will they inherit?
l

louiscad

10/07/2020, 7:54 PM
Their parent/ancestor will be a supervisor job. Others will be plain jobs. You can use
supervisorScope{ }
if you have the need at any place though.
6 Views