combineWithTwo<B, C, S2> method
Combines the latest success of this stream and the others with
combine.
This is combine-latest: nothing is emitted until every stream has emitted, then each new success emits a freshly combined value. Each failure is emitted once. While any stream's latest result is a failure, successes from the others are held rather than combined with stale data, until the failing stream succeeds again. A failure that arrives before every stream has emitted is emitted straight away.
The output closes once every stream has closed, or as soon as one closes without ever emitting. Cancel, pause and resume reach every stream, and the output is broadcast only if every stream is. Each stream is an inner run (see Mallard).
To rebuild the streams from each success of an upstream stream, combine them inside chainStream.
Implementation
ResStream<S2, F> combineWithTwo<B, C, S2>(
(ResStream<B, F>, ResStream<C, F>) others, {
required S2 Function(S a, B b, C c) combine,
}) => ResStream._(
_stream.combineWithTwo(
others as (t.ResultStream<B, F>, t.ResultStream<C, F>),
combine: combine,
),
);