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

11 lines
521 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
import { innerFrom } from '../observable/innerFrom';
import { noop } from '../util/noop';
export function takeUntil(notifier) {
return operate(function (source, subscriber) {
innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop));
!subscriber.closed && source.subscribe(subscriber);
});
}
//# sourceMappingURL=takeUntil.js.map