Flow: the Basics

KOTLIN › Concurrency

What a Kotlin Flow actually is: an async stream of values over time, the producer/collector model, emit and collect, cold execution, and why it beats callbacks.

This is the ground floor of everything reactive on Android. Before operators, StateFlow, or combining streams, you need the core picture: a Flow is a stream of values that arrive over time, produced with flow { emit(...) } and consumed with collect { } inside a coroutine. It does nothing until collected, and it's cold, each collector gets its own run. Get comfortable here and the Flow & Operators lesson, which assumes all of this, will actually click.

What this covers

Study this topic

Further reading