Coroutines and Rx: A Battle Towards Asynchronicity
summary
Compares RxJava and Kotlin coroutines with concrete tradeoffs: Retrofit now supports suspend functions so coroutines win simple HTTP calls with no adapter, while Rx adds 11,000 methods vs coroutines’ ~3,000 methods so dex and learning costs differ. Covers exception behavior (launch vs async, coroutine exception handler, supervisorScope), shows how continuations resume suspend functions, and demonstrates a custom zip implementation for coroutines (works but needs extra code and doesn’t scale as easily as Rx’s built‑in zip). Flows bridge reactive patterns for state and UI streams.
AI-written summary · about
chapters (8)
- 0:00Introduction to speakers
- 0:12What are coroutines and Rx
- 5:54Complexity in frameworks
- 6:37Round one HTTP networking
- 9:29Round two exception handling
- 15:57Round three zipping streams
- 20:14Round four managing states
- 24:48Conclusion and takeaways
related talks
42mI Swapped RxJava for Coroutines. Why You Should Too
42mKotlin Coroutines: Beyond async/await
38mCoroutines by Example
39mNo Need for a Violinist: Ditching RxJava in Favor of Kotlin Coroutines
20mLean Async Code with Kotlin's Coroutines
43mCoroutines for Java Developers
45mCoroutines: Kotlin Versus
28mConcurrency for Imposters
