Collect Kotlin’s Flow Lifecycle Aware With Style

Reduce boilerplate code and facilitate your codebase with some handy extension functions

Yanneck Reiß
Tech Takeaways
Published in
3 min readJan 30, 2022

--

An image of a waterfall.
Photo by Mike Lewis HeadSmart Media on Unsplash

AFlow is a cold stream that emits values in sequential order. “Cold” means that until a Flow is observed or rather “collected”, it won’t run. When using Flows you have the option to use various known transformation functions like map…

--

--

Yanneck Reiß
Tech Takeaways

Follow me on my journey as a professional mobile and fullstack developer