Sha256: 799e035b1b31c0167be970f5a728d8f1e15f6c89952b67f2e464e5975afd900e

Contents?: true

Size: 1.99 KB

Versions: 49

Compression:

Stored size: 1.99 KB

Contents

/** PURE_IMPORTS_START ._mergeAll PURE_IMPORTS_END */
import { mergeAll } from './mergeAll';
/**
 * Converts a higher-order Observable into a first-order Observable by
 * concatenating the inner Observables in order.
 *
 * <span class="informal">Flattens an Observable-of-Observables by putting one
 * inner Observable after the other.</span>
 *
 * <img src="./img/concatAll.png" width="100%">
 *
 * 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 <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));
 * var firstOrder = higherOrder.concatAll();
 * firstOrder.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link combineAll}
 * @see {@link concat}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 * @see {@link exhaust}
 * @see {@link mergeAll}
 * @see {@link switch}
 * @see {@link zipAll}
 *
 * @return {Observable} An Observable emitting values from all the inner
 * Observables concatenated.
 * @method concatAll
 * @owner Observable
 */
export function concatAll() {
    return mergeAll(1);
}
//# sourceMappingURL=concatAll.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/_esm5/operators/concatAll.js
ilog-0.4.0 node_modules/rxjs/_esm5/operators/concatAll.js
ilog-0.3.3 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-18.0.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.21.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.20.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.19.1 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.19.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.18.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.17.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.16.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.15.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.14.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.13.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.12.2 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.12.1 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.12.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.11.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.10.0 node_modules/rxjs/_esm5/operators/concatAll.js
govuk_publishing_components-17.9.0 node_modules/rxjs/_esm5/operators/concatAll.js