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.

expand.d.ts 1.7KB

123456789101112131415161718192021222324252627282930313233343536
  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 { MonoTypeOperatorFunction, OperatorFunction, ObservableInput, SchedulerLike } from '../types';
  7. export declare function expand<T, R>(project: (value: T, index: number) => ObservableInput<R>, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, R>;
  8. export declare function expand<T>(project: (value: T, index: number) => ObservableInput<T>, concurrent?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
  9. export declare class ExpandOperator<T, R> implements Operator<T, R> {
  10. private project;
  11. private concurrent;
  12. private scheduler;
  13. constructor(project: (value: T, index: number) => ObservableInput<R>, concurrent: number, scheduler: SchedulerLike);
  14. call(subscriber: Subscriber<R>, source: any): any;
  15. }
  16. /**
  17. * We need this JSDoc comment for affecting ESDoc.
  18. * @ignore
  19. * @extends {Ignored}
  20. */
  21. export declare class ExpandSubscriber<T, R> extends OuterSubscriber<T, R> {
  22. private project;
  23. private concurrent;
  24. private scheduler;
  25. private index;
  26. private active;
  27. private hasCompleted;
  28. private buffer;
  29. constructor(destination: Subscriber<R>, project: (value: T, index: number) => ObservableInput<R>, concurrent: number, scheduler: SchedulerLike);
  30. private static dispatch;
  31. protected _next(value: any): void;
  32. private subscribeToProjection;
  33. protected _complete(): void;
  34. notifyNext(outerValue: T, innerValue: R, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, R>): void;
  35. notifyComplete(innerSub: Subscription): void;
  36. }