combineLatest3<A, B, C, T> static method

Stream<T> combineLatest3<A, B, C, T>(
  1. Stream<A> streamA,
  2. Stream<B> streamB,
  3. Stream<C> streamC,
  4. T combiner(
    1. A a,
    2. B b,
    3. C c
    ),
)

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.combineLatest3(
  Stream.value('a'),
  Stream.value('b'),
  Stream.fromIterable(['c', 'c']),
  (a, b, c) => a + b + c)
.listen(print); //prints 'abc', 'abc'

Implementation

static Stream<T> combineLatest3<A, B, C, T>(
        Stream<A> streamA,
        Stream<B> streamB,
        Stream<C> streamC,
        T Function(A a, B b, C c) combiner) =>
    CombineLatestStream.combine3(streamA, streamB, streamC, combiner);