Structured Concurrency & Cancellation

KOTLIN › Coroutines

Scoping coroutine lifetimes, isolating failure, and making cancellation actually take effect.

Structured concurrency is the backbone of correct coroutine code on Android, so interviewers probe whether you understand how scopes bound lifetimes, how failures and cancellation propagate, and when each is isolated. Expect to reason about coroutineScope vs supervisorScope, why cancellation is cooperative, and exactly when a CoroutineExceptionHandler does or does not fire. Strong answers connect these rules to real ViewModel/repository patterns rather than reciting API names.

What this covers

Study this topic

Further reading