? That seems to be the case (see example program in thread) but I can’t find a clear authoritative statement on that this is the case.
For example, docs for interface CoroutineExceptionHandler states
Thanks, but in what way is that an authorative source? 🤔
Let’s examine the rules
That article seems to do what I already did; deduce rules by experimentation
Martin Nordholts
04/14/2020, 4:32 PM
I looked at the coroutine implementation and found this:
Copy code
if (finalException != null) {
val handled = cancelParent(finalException) || handleJobException(finalException)
if (handled) (finalState as CompletedExceptionally).makeHandled()
}
and inside cancelParent() we can find (among other things)
Copy code
isCancellation = cause is CancellationException
and by following the code a bit more this is to me authorative enough…
s
streetsofboston
04/14/2020, 4:33 PM
It is not an authorative source (it’s just me 🙂 ), but I looked at the official kotlin documentation and started experimenting from there.