Intermediate
Kotlin
Q91 / 100
What is the Kotlin Coroutines CoroutineExceptionHandler?
Correct! Well done.
Incorrect.
The correct answer is B) A coroutine context element that handles uncaught exceptions from launch coroutines
B
Correct Answer
A coroutine context element that handles uncaught exceptions from launch coroutines
Explanation
CoroutineExceptionHandler { _, exception -> log(exception) } is set as context: launch(handler) { }. It only handles exceptions from launch, not async (which stores them in Deferred).
Progress
91/100