hadiyarajesh / flower

Flower simplifies networking and database caching on Android/Multiplatform.
Apache License 2.0
288 stars 27 forks source link

How to combine multi flows from different apis? #11

Closed ageback closed 2 years ago

ageback commented 2 years ago

I'm developing a weather app, which fetch weather forecast data from different apis such as Daily, Hourly, AirQuality .etc. I can access each api with one flow. Now I want to combine these flows into one and return it in one callback. How can I do it with Flower lib, please?

hadiyarajesh commented 2 years ago

Have you tried using combine operator? More details here

ageback commented 2 years ago

Now I use Flow.combineTransform() to implement it. Thanks!