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.

race.d.ts 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Observable } from '../Observable';
  2. import { Operator } from '../Operator';
  3. import { Subscriber } from '../Subscriber';
  4. import { TeardownLogic, ObservableInput } from '../types';
  5. import { OuterSubscriber } from '../OuterSubscriber';
  6. import { InnerSubscriber } from '../InnerSubscriber';
  7. export declare function race<A>(arg: [ObservableInput<A>]): Observable<A>;
  8. export declare function race<A, B>(arg: [ObservableInput<A>, ObservableInput<B>]): Observable<A | B>;
  9. export declare function race<A, B, C>(arg: [ObservableInput<A>, ObservableInput<B>, ObservableInput<C>]): Observable<A | B | C>;
  10. export declare function race<A, B, C, D>(arg: [ObservableInput<A>, ObservableInput<B>, ObservableInput<C>, ObservableInput<D>]): Observable<A | B | C | D>;
  11. export declare function race<A, B, C, D, E>(arg: [ObservableInput<A>, ObservableInput<B>, ObservableInput<C>, ObservableInput<D>, ObservableInput<E>]): Observable<A | B | C | D | E>;
  12. export declare function race<T>(arg: ObservableInput<T>[]): Observable<T>;
  13. export declare function race(arg: ObservableInput<any>[]): Observable<{}>;
  14. export declare function race<A>(a: ObservableInput<A>): Observable<A>;
  15. export declare function race<A, B>(a: ObservableInput<A>, b: ObservableInput<B>): Observable<A | B>;
  16. export declare function race<A, B, C>(a: ObservableInput<A>, b: ObservableInput<B>, c: ObservableInput<C>): Observable<A | B | C>;
  17. export declare function race<A, B, C, D>(a: ObservableInput<A>, b: ObservableInput<B>, c: ObservableInput<C>, d: ObservableInput<D>): Observable<A | B | C | D>;
  18. export declare function race<A, B, C, D, E>(a: ObservableInput<A>, b: ObservableInput<B>, c: ObservableInput<C>, d: ObservableInput<D>, e: ObservableInput<E>): Observable<A | B | C | D | E>;
  19. export declare function race<T>(observables: ObservableInput<T>[]): Observable<T>;
  20. export declare function race(observables: ObservableInput<any>[]): Observable<{}>;
  21. export declare function race<T>(...observables: ObservableInput<T>[]): Observable<T>;
  22. export declare function race(...observables: ObservableInput<any>[]): Observable<{}>;
  23. export declare class RaceOperator<T> implements Operator<T, T> {
  24. call(subscriber: Subscriber<T>, source: any): TeardownLogic;
  25. }
  26. /**
  27. * We need this JSDoc comment for affecting ESDoc.
  28. * @ignore
  29. * @extends {Ignored}
  30. */
  31. export declare class RaceSubscriber<T> extends OuterSubscriber<T, T> {
  32. private hasFirst;
  33. private observables;
  34. private subscriptions;
  35. constructor(destination: Subscriber<T>);
  36. protected _next(observable: any): void;
  37. protected _complete(): void;
  38. notifyNext(outerValue: T, innerValue: T, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, T>): void;
  39. }