diff options
author | Nevena Bojovic <nenabojov@gmail.com> | 2022-03-01 22:05:25 +0100 |
---|---|---|
committer | Nevena Bojovic <nenabojov@gmail.com> | 2022-03-01 22:05:25 +0100 |
commit | 6555fb80fdd8f6a5d201efadec3189d1244830a0 (patch) | |
tree | c1aa1c5aedc634ad1ea7fad4847884d559b51290 /sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/AsyncSubject.js | |
parent | 7d3640f824f46490b47bd95f1c5a16644f712068 (diff) |
Izbrisala bin, obj i node-modules.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/AsyncSubject.js')
-rw-r--r-- | sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/AsyncSubject.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/AsyncSubject.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/AsyncSubject.js deleted file mode 100644 index 5365f5ae..00000000 --- a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/AsyncSubject.js +++ /dev/null @@ -1,41 +0,0 @@ -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
\ No newline at end of file |