forkJoin6<A, B, C, D, E, F, T> static method

Stream<T> forkJoin6<A, B, C, D, E, F, T>(
  1. Stream<A> streamA,
  2. Stream<B> streamB,
  3. Stream<C> streamC,
  4. Stream<D> streamD,
  5. Stream<E> streamE,
  6. Stream<F> streamF,
  7. T combiner(
    1. A a,
    2. B b,
    3. C c,
    4. D d,
    5. E e,
    6. F f,
    ),
)

Merges the given Streams into a single Stream sequence by using the combiner function when all of the stream sequences emits their last item.

Example

Rx.forkJoin6(
  Stream.value('a'),
  Stream.value('b'),
  Stream.value('c'),
  Stream.value('d'),
  Stream.value('e'),
  Stream.fromIterable(['f', 'g']),
  (a, b, c, d, e, f) => a + b + c + d + e + f)
.listen(print); //prints 'abcdeg'

Implementation

static Stream<T> forkJoin6<A, B, C, D, E, F, T>(
        Stream<A> streamA,
        Stream<B> streamB,
        Stream<C> streamC,
        Stream<D> streamD,
        Stream<E> streamE,
        Stream<F> streamF,
        T Function(A a, B b, C c, D d, E e, F f) combiner) =>
    ForkJoinStream.join6(
        streamA, streamB, streamC, streamD, streamE, streamF, combiner);