Every new change

This commit is contained in:
Luca Schwan
2020-03-25 11:05:34 +01:00
parent ff8491e75f
commit b4d041c5de
7164 changed files with 499221 additions and 135 deletions

41
node_modules/rxjs/_esm2015/internal/AsyncSubject.js generated vendored Normal file
View File

@ -0,0 +1,41 @@
import { Subject } from './Subject';
import { Subscription } from './Subscription';
export class AsyncSubject extends Subject {
constructor() {
super(...arguments);
this.value = null;
this.hasNext = false;
this.hasCompleted = false;
}
_subscribe(subscriber) {
if (this.hasError) {
subscriber.error(this.thrownError);
return Subscription.EMPTY;
}
else if (this.hasCompleted && this.hasNext) {
subscriber.next(this.value);
subscriber.complete();
return Subscription.EMPTY;
}
return super._subscribe(subscriber);
}
next(value) {
if (!this.hasCompleted) {
this.value = value;
this.hasNext = true;
}
}
error(error) {
if (!this.hasCompleted) {
super.error(error);
}
}
complete() {
this.hasCompleted = true;
if (this.hasNext) {
super.next(this.value);
}
super.complete();
}
}
//# sourceMappingURL=AsyncSubject.js.map