subscribeOn.js 743 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var operators_1 = require("rxjs/operators");
  4. /**
  5. * Asynchronously subscribes Observers to this Observable on the specified IScheduler.
  6. *
  7. * <img src="./img/subscribeOn.png" width="100%">
  8. *
  9. * @param {Scheduler} scheduler - The IScheduler to perform subscription actions on.
  10. * @return {Observable<T>} The source Observable modified so that its subscriptions happen on the specified IScheduler.
  11. .
  12. * @method subscribeOn
  13. * @owner Observable
  14. */
  15. function subscribeOn(scheduler, delay) {
  16. if (delay === void 0) { delay = 0; }
  17. return operators_1.subscribeOn(scheduler, delay)(this);
  18. }
  19. exports.subscribeOn = subscribeOn;
  20. //# sourceMappingURL=subscribeOn.js.map