Launching Into Coroutines
summary
Kotlin coroutines replace callback spaghetti with suspend/resume and integrate with Retrofit so network calls look like direct calls while running on Dispatchers.IO and CPU work runs on Dispatchers.Default leaving the UI on Dispatchers.Main. Structured concurrency enforces that a suspend function only returns after its child coroutines finish, scopes cancel their children and report exceptions. Testing support lands in kotlinx-coroutines-test. Examples show background save patterns, ViewModel scope usage, and pitfalls around unstructured launches and leaked work.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:24Are coroutines a fad?
- 6:20Network & Disk
- 17:46def dispatcher()
- 41:48Who gets exceptions?
- 46:29concurrency
related talks
32mNetworking the Kotlin way: Retrofit + Coroutines
47mKotlin Coroutines
44mTesting Kotlin Coroutines
59mKotlin coroutines: new ways to do asynchronous programming
40mConcurrency made easy with Kotlin Coroutines
42mKotlin Coroutines: An Intro to Practical Use on Android
38mKotlin coroutines
42mKotlin Coroutines: Beyond async/await
