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

darkmoon_uk

10/08/2019, 6:48 AM
...and if this is the case, is use of
supervisorScope
mandatory wherever a coroutine might fail, to avoid the entire concurrency tree being taken down?
v

Viktor Penelski

10/08/2019, 8:42 AM
If you want to keep the coroutines scoped, it seems that way based on the docs (https://kotlinlang.org/docs/reference/coroutines/exception-handling.html#supervision). You could also not keep child coroutines scoped under a single parent, but that would not have the advantages that structured concurrency provides
2 Views