concatAll
Converts a higher-order Observable into a first-order Observable by concatenating the inner Observables in order.
Parameters
There are no parameters.
Returns
OperatorFunction<ObservableInput<T>, T>
: An Observable emitting values from all the inner
Observables concatenated.
Description
Flattens an Observable-of-Observables by putting one inner Observable after the other.
Joins every Observable emitted by the source (a higher-order Observable), in a serial fashion. It subscribes to each inner Observable only after the previous inner Observable has completed, and merges all of their values into the returned observable.
Warning: If the source Observable emits Observables quickly and endlessly, and the inner Observables it emits generally complete slower than the source emits, you can run into memory issues as the incoming Observables collect in an unbounded buffer.
Note: concatAll
is equivalent to mergeAll
with concurrency parameter set
to 1
.
Example
For each click event, tick every second from 0 to 3, with no concurrency