Skip to content
RED SAGSkills
hard20 pts · first answer countsandroidcoroutineserror-handling

Handler on a child coroutine

A crash still happens even though the inner launch has a CoroutineExceptionHandler. Why?

scope.launch {
    launch(CoroutineExceptionHandler { _, e -> log(e) }) {
        throw IOException("boom")
    }
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions