Intermediate Kotlin
Q65 / 100

What is the purpose of SupervisorJob in coroutines?

Correct! Well done.

Incorrect.

The correct answer is B) To prevent a child coroutine failure from cancelling sibling coroutines

B

Correct Answer

To prevent a child coroutine failure from cancelling sibling coroutines

Explanation

With a regular Job, a failing child cancels the parent and all siblings. SupervisorJob isolates failures so only the failed child is cancelled.

Progress
65/100