Managing parallelism using coroutines
summary
Shows concrete patterns: uses Kotlin coroutines to run parallel network and DB work with uses Retrofit and Room, times where parallel launches cut two-second totals to one, and how structured concurrency, supervisorJob and cancellation semantics, and dispatcher choices actually behave in production. Includes error cases that crash vs ones that retry, test approaches with runBlocking, a caching+timeout pattern that keeps the UI responsive, and production NYT examples so it demonstrates what was built and whether it worked.
AI-written summary · about
chapters (10)
- 0:00Parallelism with coroutines
- 3:30Coroutines simplify concurrency
- 8:50Async vs coroutines
- 14:18Exception handling in scopes
- 20:19Top-level vs nested contexts
- 24:40Caching strategies
- 32:25Real-world use cases
- 36:04Supervisor jobs and cancellation
- 40:30NYT production insights
- 44:29Q&A
related talks
44mTesting Kotlin Coroutines
49mKotlin Coroutines in Practice
42mKotlin Coroutines: An Intro to Practical Use on Android
33mVisualising concurrency with Kotlin
49mLaunching Into Coroutines
20mLean async code with Kotlin´s coroutines
40mConcurrency made easy with Kotlin Coroutines
28mConcurrency for Imposters
