subscribeOn.js 474 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.subscribeOn = void 0;
  4. var lift_1 = require("../util/lift");
  5. function subscribeOn(scheduler, delay) {
  6. if (delay === void 0) { delay = 0; }
  7. return lift_1.operate(function (source, subscriber) {
  8. subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay));
  9. });
  10. }
  11. exports.subscribeOn = subscribeOn;
  12. //# sourceMappingURL=subscribeOn.js.map