Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/rxjs/_esm2015/operators/ drwxrwxr-x | |
| Viewing file: Select action/file-type: import { OuterSubscriber } from '../OuterSubscriber';
import { subscribeToResult } from '../util/subscribeToResult';
/**
* Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
*
* <img src="./img/skipUntil.png" width="100%">
*
* @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to
* be mirrored by the resulting Observable.
* @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits
* an item, then emits the remaining items.
* @method skipUntil
* @owner Observable
*/
export function skipUntil(notifier) {
return (source) => source.lift(new SkipUntilOperator(notifier));
}
class SkipUntilOperator {
constructor(notifier) {
this.notifier = notifier;
}
call(subscriber, source) {
return source.subscribe(new SkipUntilSubscriber(subscriber, this.notifier));
}
}
/**
* We need this JSDoc comment for affecting ESDoc.
* @ignore
* @extends {Ignored}
*/
class SkipUntilSubscriber extends OuterSubscriber {
constructor(destination, notifier) {
super(destination);
this.hasValue = false;
this.isInnerStopped = false;
this.add(subscribeToResult(this, notifier));
}
_next(value) {
if (this.hasValue) {
super._next(value);
}
}
_complete() {
if (this.isInnerStopped) {
super._complete();
}
else {
this.unsubscribe();
}
}
notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
this.hasValue = true;
}
notifyComplete() {
this.isInnerStopped = true;
if (this.isStopped) {
super._complete();
}
}
}
//# sourceMappingURL=skipUntil.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0053 ]-- |