hugoWebsite/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js

15 lines
692 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.takeUntil = void 0;
var lift_1 = require("../util/lift");
var OperatorSubscriber_1 = require("./OperatorSubscriber");
var innerFrom_1 = require("../observable/innerFrom");
var noop_1 = require("../util/noop");
function takeUntil(notifier) {
return lift_1.operate(function (source, subscriber) {
innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop_1.noop));
!subscriber.closed && source.subscribe(subscriber);
});
}
exports.takeUntil = takeUntil;
//# sourceMappingURL=takeUntil.js.map