mergeAll
Converts a higher-order Observable into a first-order Observable which concurrently delivers all values that are emitted on the inner Observables.
Parameters
concurrent |
Optional. Default is Maximum number of inner Observables being subscribed to concurrently. |
Returns
OperatorFunction<ObservableInput<T>, T>
: An Observable that emits values coming from all the
inner Observables emitted by the source Observable.
Description
Flattens an Observable-of-Observables.
mergeAll
subscribes to an Observable that emits Observables, also known as
a higher-order Observable. Each time it observes one of these emitted inner
Observables, it subscribes to that and delivers all the values from the
inner Observable on the output Observable. The output Observable only
completes once all inner Observables have completed. Any error delivered by
a inner Observable will be immediately emitted on the output Observable.
Examples
Spawn a new interval Observable for each click event, and blend their outputs as one Observable
Count from 0 to 9 every second for each click, but only allow 2 concurrent timers