Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
646 bytes
|
Line | |
---|
1 | import { Subscriber } from './Subscriber';
|
---|
2 | import { InnerSubscriber } from './InnerSubscriber';
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * We need this JSDoc comment for affecting ESDoc.
|
---|
6 | * @ignore
|
---|
7 | * @extends {Ignored}
|
---|
8 | */
|
---|
9 | export class OuterSubscriber<T, R> extends Subscriber<T> {
|
---|
10 | notifyNext(outerValue: T, innerValue: R,
|
---|
11 | outerIndex: number, innerIndex: number,
|
---|
12 | innerSub: InnerSubscriber<T, R>): void {
|
---|
13 | this.destination.next(innerValue);
|
---|
14 | }
|
---|
15 |
|
---|
16 | notifyError(error: any, innerSub: InnerSubscriber<T, R>): void {
|
---|
17 | this.destination.error(error);
|
---|
18 | }
|
---|
19 |
|
---|
20 | notifyComplete(innerSub: InnerSubscriber<T, R>): void {
|
---|
21 | this.destination.complete();
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.