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

Albert

05/16/2019, 12:37 PM
is it possible with
joinAll
that it throws
CancellationException
when this occurred in any of the
launch {}
?
r

ribesg

05/16/2019, 12:54 PM
I’m not sure about what you’re asking, but a
Job
started inside a
Job
will cause its parent to fail if it fails. Take a look at
SupervisorJob
. Note that a
Job
throwing a
CancellationException
would not cancel its parent
Job
a

Albert

05/16/2019, 5:06 PM
I assumed the
CancellationException
would also cancel the parent.
2 Views