21 Flows
The structure of your application is defined by how data moves through it. As a developer, you have many decisions to make. Will various components communicate directly? Will sources of data expose a way for other components to subscribe to changes? Should your data consistently move in one direction? Whatever your strategy, intentionality is key.
In this chapter, you will explore Kotlin’s built-in stream support and learn how to send data throughout your application. Flows represent streams of data that can be subscribed to, and they can help you design applications with a unidirectional flow of information that update based on changes to their state.
This often builds on the kind of object-oriented paradigms you used ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access