I’m browsing the Flow api. Curious about this reco...
# coroutines
j
I’m browsing the Flow api. Curious about this recommendation on the function
flatMapMerge
(https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flat-map-merge.html):
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.
Is simplicity the only reason why this is recommended? What we want to benefit from concurrent execution of the transformation?