Cracking Kotlin Coroutines
summary
Walks through continuations and suspension with live Android code printed to a TextView, demonstrates using suspendCancellableCoroutine as a callback bridge, contrasts builders launch vs async and shows async exceptions surface on await, explains scope inheritance and how overriding a job breaks structured concurrency, proves cancellation propagates to children and why silent swallowing breaks logic, shows using viewModelScope, supervisorScope to limit propagation, and uses withContext(NonCancellable) to run required cleanup that must still be used sparingly.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:22Suspension
- 8:25Builders
- 9:18Scope
- 10:28Context
- 11:55concurrency
- 21:41Cancellation
- 28:41Exceptions
related talks
40mDeep diving into the Kotlin Coroutines API
37mAndroid Suspenders
35mEfficient Async with Kotlin Coroutines
43mAsynchronous programming using Coroutines
30mBetter asynchronous programming with Kotlin Coroutines
38mUnderstand Kotlin Coroutines on Android
40mBuilding Asynchronous Mechanisms in Android App, Using Kotlin Coroutines
38mAndroid Suspenders
