Hi all -- I have a Flow<> and for each item, I want to make a potentially-long-running network call. I would like these calls to happen in parallel.
I can achieve that by doing
HOWEVER, Flow's flatMapMerge() has the following comment
Copy code
Note that even though this operator looks very familiar, we discourage its usage in a regular application-specific flows.
Most likely, suspending operation in [map] operator will be sufficient and linear transformations are much easier to reason about.
I can't figure out how to do this with just a suspend map. Help?
o
octylFractal
11/07/2019, 7:17 PM
I'm not sure if this is really any better, but I think doing