should I define empty error handler to avoid this?...
# coroutines
e
should I define empty error handler to avoid this? https://pl.kotl.in/Bk5wBif1N
g
No, error handler will not help
This is expected behavior
CoroutineSope child coroutine failed, this cause scope cancellation and propagation of error (because block finished exceptionally)
This behavior is default to avoid coroutines leaking: if one of child coroutines failed, it causes cancellation of scope and all other child coroutines
You can wrap code inside of runBlocking to supervisorContext to prevent scope from cancellation and propagation of error, but you responsible now to handle other coroutines manually
e
thanks