A single suspend function returns one value, but many real programs deal with streams of values over time: search results, sensor readings, database updates, UI state. Flow is Kotlin's coroutine-based answer. A cold flow produces values only when something collects it, and operators such as map, filter, and flowOn let you transform the stream and control where it runs.
You'll also meet the hot flows, StateFlow and SharedFlow, which hold state and share values between multiple collectors, and look at how coroutines handle concurrency and parallelism so you can run work side by side safely.
Watch the lessons in order, then continue on to Building Apps with Kotlin.
Introduces flow builders and the emit and collect functions, and why flows are cold in nature.
Covers the flow builder, operators, flowOn, combine, stateIn, shareIn, and error handling.
Explains what StateFlow is and the differences between SharedFlow, StateFlow, and LiveData.
An overview of coroutines in Kotlin, including how they can be used for concurrency and parallelism.