Go with the Flow
summary
Kotlin Flow is cold, operator lambdas are suspending, and context preservation means flowOn only affects upstream. The talk explains internals (emitter/collector links, operators as a linked list), contrasts StateFlow uses SharedFlow(replay=1) vs SharedFlow with configurable replay, shows using callbackFlow for callbacks, conversion paths from Rx (asFlow and a custom Rx1→Flow library used in production), and testing with runTest and injectable test dispatchers.
AI-written summary · about
chapters (14)
- 0:00Introduction to flow
- 1:03Coroutines and concurrency
- 3:41Understanding flow basics
- 6:22Internal mechanics
- 9:42Ideologies and principles
- 12:51Operators and chaining
- 15:40Flow in MVVM architecture
- 18:36State and shared flows
- 21:51Dispatcher management
- 23:51Lifecycle and UI integration
- 28:40Compose integration
- 29:52Legacy callback integration
- 31:18Migrating from RxJava
- 33:14Testing flows








