Yes, but I caught it, without rethrowing it, and moved on to the next iteration, which began in the try block that would throw the
CancellationException
, then caught again, and so on...
Reading your words, I think I'm realizing it's not a good idea to throw a
CancellationException
that can't be disambiguated by its type like
TimeoutCancellationException
can for things like an alert dialog being dismissed so I'll create a
CancellationException
subclass and cancel the
CompletableDeferred
with it, so a coroutine calling it can recover safely if needed.