Advanced Kotlin
Q77 / 100

How does Kotlin's coroutine Scope cancellation propagate?

Correct! Well done.

Incorrect.

The correct answer is B) Cancelling a scope cancels all its children; each child throws CancellationException at its next suspension point

B

Correct Answer

Cancelling a scope cancels all its children; each child throws CancellationException at its next suspension point

Explanation

Cancellation is cooperative. Cancelling a Job propagates to all descendants. Suspending functions (like delay) check for cancellation and throw CancellationException when cancelled.

Progress
77/100