Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OuterSubscriber.ts 646B

1234567891011121314151617181920212223
  1. import { Subscriber } from './Subscriber';
  2. import { InnerSubscriber } from './InnerSubscriber';
  3. /**
  4. * We need this JSDoc comment for affecting ESDoc.
  5. * @ignore
  6. * @extends {Ignored}
  7. */
  8. export class OuterSubscriber<T, R> extends Subscriber<T> {
  9. notifyNext(outerValue: T, innerValue: R,
  10. outerIndex: number, innerIndex: number,
  11. innerSub: InnerSubscriber<T, R>): void {
  12. this.destination.next(innerValue);
  13. }
  14. notifyError(error: any, innerSub: InnerSubscriber<T, R>): void {
  15. this.destination.error(error);
  16. }
  17. notifyComplete(innerSub: InnerSubscriber<T, R>): void {
  18. this.destination.complete();
  19. }
  20. }