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.

mergeMap.d.ts 2.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Operator } from '../Operator';
  2. import { Subscriber } from '../Subscriber';
  3. import { Subscription } from '../Subscription';
  4. import { OuterSubscriber } from '../OuterSubscriber';
  5. import { InnerSubscriber } from '../InnerSubscriber';
  6. import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';
  7. export declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
  8. /** @deprecated resultSelector no longer supported, use inner map instead */
  9. export declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, resultSelector: undefined, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
  10. /** @deprecated resultSelector no longer supported, use inner map instead */
  11. export declare function mergeMap<T, R, O extends ObservableInput<any>>(project: (value: T, index: number) => O, resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;
  12. export declare class MergeMapOperator<T, R> implements Operator<T, R> {
  13. private project;
  14. private concurrent;
  15. constructor(project: (value: T, index: number) => ObservableInput<R>, concurrent?: number);
  16. call(observer: Subscriber<R>, source: any): any;
  17. }
  18. /**
  19. * We need this JSDoc comment for affecting ESDoc.
  20. * @ignore
  21. * @extends {Ignored}
  22. */
  23. export declare class MergeMapSubscriber<T, R> extends OuterSubscriber<T, R> {
  24. private project;
  25. private concurrent;
  26. private hasCompleted;
  27. private buffer;
  28. private active;
  29. protected index: number;
  30. constructor(destination: Subscriber<R>, project: (value: T, index: number) => ObservableInput<R>, concurrent?: number);
  31. protected _next(value: T): void;
  32. protected _tryNext(value: T): void;
  33. private _innerSub;
  34. protected _complete(): void;
  35. notifyNext(outerValue: T, innerValue: R, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, R>): void;
  36. notifyComplete(innerSub: Subscription): void;
  37. }