Kotlin Flows Producer-Consumer Design Pattern Implementation
3 min readJun 27, 2020
In this post, I would like to demonstrate a basic producer - consumer model that uses Kotlin Flows
(consumer is faster than producer).
Let’s image our example app downloads the stock-exchange or currency rates every 1 second, display them on the RecyclerView
and provides us to change the calculation value on the fly.