Thanks. One question about example 3: Coroutine 1 fails and propagates the exception up the hierarchy. SupervisorJob is a sibling of Coroutine 1. Shouldn't it be cancelled exceptionally in this example (and all its children too)?
Erik
10/29/2020, 6:58 AM
If so, I suggest that you make this clear in the example. I understand that you want to point out that a supervisor doesn't cancel sibling children on sibling failure, but a supervisor can be cancelled!
Erik
10/29/2020, 6:59 AM
So, to improve the example, maybe make the root scope a supervisor
Erik
10/29/2020, 7:00 AM
However, that would make the cancellation of the entire hierarchy (if no supervisor parent) unclear. So really this needs two examples