gather is able to merge an arbitrary amount of flows into a single one, but there's currently no way to have gather semantics for a flow of flows.
We could have a gathering operator that would behave like ?? or ?! except when the flow emits its next value before the previous continuation terminates, a new continuation is run concurrently and the resulting ap flow emits values as soon as they're ready.
Just like ?? and ?! respectively match RxJava's concatMap and switchMap, this new operator would match flatMap.
gather
is able to merge an arbitrary amount of flows into a single one, but there's currently no way to have gather semantics for a flow of flows.We could have a gathering operator that would behave like
??
or?!
except when the flow emits its next value before the previous continuation terminates, a new continuation is run concurrently and the resultingap
flow emits values as soon as they're ready.Just like
??
and?!
respectively match RxJava'sconcatMap
andswitchMap
, this new operator would matchflatMap
.