subscribeOn.js 694B

12345678910111213141516171819
  1. "use strict";
  2. var subscribeOn_1 = require('../operators/subscribeOn');
  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. function subscribeOn(scheduler, delay) {
  15. if (delay === void 0) { delay = 0; }
  16. return subscribeOn_1.subscribeOn(scheduler, delay)(this);
  17. }
  18. exports.subscribeOn = subscribeOn;
  19. //# sourceMappingURL=subscribeOn.js.map