Sha256: efbca8624c0dc149d7be5834de56e25e068e2877c411791319302207f1a88251

Contents?: true

Size: 1.51 KB

Versions: 49

Compression:

Stored size: 1.51 KB

Contents

/** PURE_IMPORTS_START .._operators_takeUntil PURE_IMPORTS_END */
import { takeUntil as higherOrder } from '../operators/takeUntil';
/**
 * Emits the values emitted by the source Observable until a `notifier`
 * Observable emits a value.
 *
 * <span class="informal">Lets values pass until a second Observable,
 * `notifier`, emits something. Then, it completes.</span>
 *
 * <img src="./img/takeUntil.png" width="100%">
 *
 * `takeUntil` subscribes and begins mirroring the source Observable. It also
 * monitors a second Observable, `notifier` that you provide. If the `notifier`
 * emits a value, the output Observable stops mirroring the source Observable
 * and completes.
 *
 * @example <caption>Tick every second until the first click happens</caption>
 * var interval = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = interval.takeUntil(clicks);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeLast}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @param {Observable} notifier The Observable whose first emitted value will
 * cause the output Observable of `takeUntil` to stop emitting values from the
 * source Observable.
 * @return {Observable<T>} An Observable that emits the values from the source
 * Observable until such time as `notifier` emits its first value.
 * @method takeUntil
 * @owner Observable
 */
export function takeUntil(notifier) {
    return higherOrder(notifier)(this);
}
//# sourceMappingURL=takeUntil.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
govuk_publishing_components-17.8.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.7.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.6.1 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.6.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.5.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.4.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.3.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.2.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.1.1 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.1.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-17.0.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.29.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.28.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.27.1 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.27.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.26.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.25.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.24.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.23.0 node_modules/rxjs/_esm5/operator/takeUntil.js
govuk_publishing_components-16.22.0 node_modules/rxjs/_esm5/operator/takeUntil.js