<Kotlin: CancellationException unwrapping in corou...
# stackoverflow
u
Kotlin: CancellationException unwrapping in coroutines I have found next statement in the documentation: Cancellation exceptions are transparent and are unwrapped by default: val handler = CoroutineExceptionHandler { _, exception -> println("CoroutineExceptionHandler got $exception") } val job = GlobalScope.launch(handler) { val inner = launch { // all this stack of coroutines will get cancelled launch { launch { throw IOException() // the original exception } } } try {...