Sha256: 427e3d2d3b1a20a4cd39447c36a893218615c8df3789bfe3378d2847a3264788

Contents?: true

Size: 1.88 KB

Versions: 49

Compression:

Stored size: 1.88 KB

Contents

{"version":3,"file":"takeUntil.js","sourceRoot":"","sources":["../../src/operator/takeUntil.ts"],"names":[],"mappings":";AACA,0BAAyC,wBAAwB,CAAC,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,mBAAkD,QAAyB;IACzE,MAAM,CAAC,qBAAW,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAkB,CAAC;AACtD,CAAC;AAFe,iBAAS,YAExB,CAAA","sourcesContent":["import { Observable } from '../Observable';\nimport { takeUntil as higherOrder } from '../operators/takeUntil';\n\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits something. Then, it completes.</span>\n *\n * <img src=\"./img/takeUntil.png\" width=\"100%\">\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value, the output Observable stops mirroring the source Observable\n * and completes.\n *\n * @example <caption>Tick every second until the first click happens</caption>\n * var interval = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = interval.takeUntil(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable until such time as `notifier` emits its first value.\n * @method takeUntil\n * @owner Observable\n */\nexport function takeUntil<T>(this: Observable<T>, notifier: Observable<any>): Observable<T> {\n  return higherOrder(notifier)(this) as Observable<T>;\n}\n"]}

Version data entries

49 entries across 49 versions & 4 rubygems

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