Nik Clayton 5f67f9938c
fix: Ensure coroutine cancellations propograte, rethrow CancellationException (#1231)
Previous code had legacy `try ... catch` blocks that could catch all
exceptions, including `CancellationException`, thrown if the job of a
suspending function is cancelled.

Indiscriminately catching those can interfere with cancellation, so use
`currentCoroutineContext().ensureActive()` to rethrow the exception if
the job has been cancelled.
2025-01-24 18:04:46 +01:00
..