@Experimental Kotlin coroutines
summary
Kotlin coroutines are stable in 1.3 but several API bits remain experimental or obsolete and may change. The session shows concrete patterns: using Channel, Actor, Select to implement a hamburger-stand simulation with two cooks, a producer of orders and a massive run of 8 people × 3 requests (24 actions) yielding 9 final orders. It demonstrates buffering modes (rendezvous, conflated, buffered, unlimited), differences like produce vs actor builders (produce auto-closes, actor must be closed), and using select to pick the first ready resource.
AI-written summary · about
chapters (10)
- 0:00Introduction to coroutines
- 6:38Coroutines vs threads
- 9:06Sequential vs concurrent cooking
- 10:34Scaling with channels
- 15:15Implementing channel logic
- 18:53Channel buffer types
- 20:21Actor for synchronization
- 24:19Selecting first available
- 27:30Final demo and summary
- 29:53Q&A session
related talks
38mConcurrency doesn,t have to be hard: Kotlin Coroutines and Channels
33mVisualising concurrency with Kotlin
46mFunctional CQRS in Kotlin
49mKotlin Coroutines in Practice
30mBetter asynchronous programming with Kotlin Coroutines
45mManaging parallelism using coroutines
30mBetter asynchronous programming with Kotlin Coroutines
56mKotlin Coroutines And More
