Kotlin coroutines
summary
Explains how Kotlin coroutines replace callback hell with sequential-looking code using suspend functions and shows concrete primitives: withContext(dispatchers.IO), async + await, Jobs, join and cancel. Demonstrates a login then two parallel friend requests that go from 6s sequential to about 4s with async. Covers dispatchers (Default, IO — ~64 threads for IO, Main), builders (runBlocking, launch), scopes for Activity lifecycle, and wrapping legacy callbacks with suspendCoroutine.
AI-written summary · about
chapters (5)
- 0:00Intro
- 0:41Understanding coroutines
- 10:13Suspending functions
- 15:39Dispatchers
- 29:17Scopes - extending Coroutine Scope
related talks
42mKotlin Coroutines: An Intro to Practical Use on Android
47mKotlin Coroutines
30mBetter asynchronous programming with Kotlin Coroutines
44mTesting Kotlin Coroutines
59mKotlin coroutines: new ways to do asynchronous programming
42mKotlin Coroutines: Beyond async/await
35mKotlin Coroutine Mechanisms
49mLaunching Into Coroutines
