takeUntil.js 692 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.takeUntil = void 0;
  4. var lift_1 = require("../util/lift");
  5. var OperatorSubscriber_1 = require("./OperatorSubscriber");
  6. var innerFrom_1 = require("../observable/innerFrom");
  7. var noop_1 = require("../util/noop");
  8. function takeUntil(notifier) {
  9. return lift_1.operate(function (source, subscriber) {
  10. innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop_1.noop));
  11. !subscriber.closed && source.subscribe(subscriber);
  12. });
  13. }
  14. exports.takeUntil = takeUntil;
  15. //# sourceMappingURL=takeUntil.js.map