combineLatest5<A, B, C, D, E, T> method

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

Merges the given Streams into a single Stream sequence by using the combiner function whenever any of the stream sequences emits an item.

The Stream will not emit until all streams have emitted at least one item.

Interactive marble diagram

Example

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

Implementation

static Stream<T> combineLatest5<A, B, C, D, E, T>(
        Stream<A> streamA,
        Stream<B> streamB,
        Stream<C> streamC,
        Stream<D> streamD,
        Stream<E> streamE,
        T Function(A a, B b, C c, D d, E e) combiner) =>
    CombineLatestStream.combine5(
        streamA, streamB, streamC, streamD, streamE, combiner);