Efficient Async with Kotlin Coroutines
summary
Shows practical Kotlin coroutines for Android: uses Retrofit returning Deferred/Response, demonstrates CoroutineScope tied to Activity with a Job cancelled in onDestroy so child coroutines stop, contrasts launch vs async (Deferred) and suspending functions vs Thread.sleep, uses withContext(Dispatchers.Main) and Dispatchers.IO, and points out IO can run 64+ coroutines concurrently. Delivers a working GitHub-API demo app, covers exception handling via CoroutineExceptionHandler, and proves coroutines reduce callback and threading boilerplate.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:08Audience Profiles
- 6:33Learning Code
- 13:19Suspending Functions
- 19:22Dispatchers
- 26:54Exception Handler
- 28:22Api Level Error
- 30:00Try-Catch
- 32:44Resources
related talks
30mBetter asynchronous programming with Kotlin Coroutines
40mDeep diving into the Kotlin Coroutines API
40mBuilding Asynchronous Mechanisms in Android App, Using Kotlin Coroutines
20mLean Async Code with Kotlin's Coroutines
43mAsynchronous programming using Coroutines
36mCracking Kotlin Coroutines
37mAndroid Suspenders
38mAndroid Coroutines: How to manage async tasks in Kotlin
