streetsofboston
07/09/2019, 3:33 PMSupervisorJob
.
To me it seems the code has a bug in how exceptions propagate (or not) to the parent of a Coroutine run within a SupervisorJob. I logged the issue here:
https://github.com/Kotlin/kotlinx.coroutines/issues/1317
Can someone shed a light on how this is supposed to work? I’m a bit baffled 🙂
Thanks!Matt Thompson
07/10/2019, 1:25 AMsupervisorScope
might explain it: The provided scope inherits its coroutineContext from the outer scope, but overrides context’s Job with SupervisorJob.
- so in this case cehParent
would be inherited as the the context and handle the exception, I don't think it's propagating the error to the parent launch
streetsofboston
07/10/2019, 10:48 AMSupervisorJob
... Is this what happens?elizarov
07/11/2019, 8:09 AMCoroutineExceptionHandler
is inherited.