subscribeOn.d.ts 612 B

1234567891011121314
  1. import { IScheduler } from '../Scheduler';
  2. import { MonoTypeOperatorFunction } from '../interfaces';
  3. /**
  4. * Asynchronously subscribes Observers to this Observable on the specified IScheduler.
  5. *
  6. * <img src="./img/subscribeOn.png" width="100%">
  7. *
  8. * @param {Scheduler} scheduler - The IScheduler to perform subscription actions on.
  9. * @return {Observable<T>} The source Observable modified so that its subscriptions happen on the specified IScheduler.
  10. .
  11. * @method subscribeOn
  12. * @owner Observable
  13. */
  14. export declare function subscribeOn<T>(scheduler: IScheduler, delay?: number): MonoTypeOperatorFunction<T>;