Introduction to Coroutines
summary
Shows that Kotlin adds coroutines as first-class primitives using the suspend modifier and coroutine builders like launch and async; demonstrates 100,000 coroutines printing dots successfully while the equivalent thread version throws OutOfMemoryError. Explains sequential-by-default design (use explicit builders for concurrency), the Deferred future type and await extension for Java interop, sequence builders with yield, and that coroutines are lightweight, library-driven, and currently experimental but production-ready.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:15microservices
- 1:47threats
- 4:22callbacks
- 6:25futures
- 9:03suspension
- 12:44suspending functions
- 14:43highorder functions
- 19:56lunch
- 21:08tradition
- 30:08recap
- 30:49curtains
- 35:55Java interoperability
- 38:14Coroutines beyond synchronous
- 41:25Conclusion
related talks
47mKotlin Coroutines
43mCoroutines for Java Developers
01h 03mUsing Kotlin Coroutines for Asynchronous and Concurrent Programming
59mKotlin coroutines: new ways to do asynchronous programming
49mKotlin Coroutines
45mCoroutines: Kotlin Versus
42mKotlin Coroutines: Beyond async/await
30mBetter asynchronous programming with Kotlin Coroutines
