Coroutines Update
summary
Debugging now shows recovered coroutine stacks in IntelliJ 2020.1 plus a coroutines tab that lists suspended and running coroutines and shows creation stacks. Flow gets concrete primitives: StateFlow replaces ConflatedBroadcastChannel for single latest-state propagation, SharedFlow (and shareIn) handles replayed event streams. Kotlinx.coroutines reduces app DEX size by about 30% and revises the scheduler to cut CPU in some cases by up to 4x. Adds runInterruptible, BlockHound integration, plans to stabilize StateFlow/SharedFlow, improve resource APIs, deprecate unsafe offer/poll, and add time operators and sliceable dispatchers.
AI-written summary · about
chapters (8)
- 0:00Debugging coroutines
- 3:49Introduction to flow
- 4:48Managing state with state flow
- 8:14Event streams with shared flow
- 13:49Core flow operators
- 16:56Android and performance updates
- 19:08Java interoperability
- 20:26Future roadmap








