This item was not updated in last three versions of the Radar. Should it have appeared in one of the more recent editions, there is a good chance it remains pertinent. However, if the item dates back further, its relevance may have diminished and our current evaluation could vary. Regrettably, our capacity to consistently revisit items from past Radar editions is limited.
Adopt
Flows in Kotlin are asynchronous data streams that emit values sequentially. They are built on top of coroutines and can be used to represent data from various sources, such as network calls, databases, or events.
Creating flows
Flows are created using the flow() function. This function takes as input a block of suspendable code which emits the flow values.