join7<A, B, C, D, E, F, G, R> static method
Constructs a Stream that awaits the last values the provided Streams,
then calls the combiner
to emit an event of type R
.
After this event, the Stream closes.
Implementation
static ForkJoinStream<dynamic, R> join7<A, B, C, D, E, F, G, R>(
Stream<A> streamA,
Stream<B> streamB,
Stream<C> streamC,
Stream<D> streamD,
Stream<E> streamE,
Stream<F> streamF,
Stream<G> streamG,
R Function(A a, B b, C c, D d, E e, F f, G g) combiner,
) =>
ForkJoinStream<dynamic, R>(
[streamA, streamB, streamC, streamD, streamE, streamF, streamG],
(List<dynamic> values) {
return combiner(
values[0] as A,
values[1] as B,
values[2] as C,
values[3] as D,
values[4] as E,
values[5] as F,
values[6] as G,
);
},
);