About composing and flattening flows - devrath/KotlinAlchemy GitHub Wiki
Flows can be buffered
- The emitters may be emitting more quickly than the collectors can collect.
- In Such a situation we can use buffering to alleviate some of it.
Flows can be Conflated
- Say suppose the emitter can emit quickly then the collector can collect it we can make it in such a way that the collector gets the latest value.
Combining the flows
- We can
zip
together and combine the flows
Flattening the flows
- When there is a flow of flows, Say a flow has nested flows, We can get the innermost flow.