Trip into the async world
summary
Compares RxJava and Coroutines with concrete examples: Retrofit (noting Retrofit 2.5.1 snapshot needed for suspending methods and the later adapter changes), testing differences using runBlockingTest versus RxJava test operators, and the JetBrains bridge with await. Shows a working conversion of an Apollo GraphQL callback into a four-line suspend implementation using suspendCancellableCoroutine. Claims coroutines reduce boilerplate, make testing simpler, and reports a migration from ~3% to ~50% Kotlin in two years on a large codebase.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:36Async vs Java
- 1:32Adapter Factory
- 2:06Async vs Retrofit
- 2:35Testing
- 5:42DLC Parody
- 6:38Implementation
- 9:11Behavior
- 9:52Learning curve
- 11:18Live data
- 16:18Operators
- 20:14GraphQL
related talks
42mI Swapped RxJava for Coroutines. Why You Should Too
43mAsynchronous programming using Coroutines
32mNetworking the Kotlin way: Retrofit + Coroutines
42mKotlin Coroutines: An Intro to Practical Use on Android
42mKotlin Coroutines: Beyond async/await
49mLaunching Into Coroutines
40mBuilding Asynchronous Mechanisms in Android App, Using Kotlin Coroutines
44mTesting Kotlin Coroutines
