import { Observable, operate, from } from '../Observable.js';
import { noop } from '../util/noop.js';
export function takeUntil(notifier) {
    return (source) => new Observable((destination) => {
        from(notifier).subscribe(operate({ destination, next: () => destination.complete(), complete: noop }));
        !destination.closed && source.subscribe(destination);
    });
}//# sourceMappingURL=http://go/sourcemap/sourcemaps/63a2996a10d9e476b6c28e951dd7691d9c0cf480/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js.map