delay.js 513 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.delay = void 0;
  4. var async_1 = require("../scheduler/async");
  5. var delayWhen_1 = require("./delayWhen");
  6. var timer_1 = require("../observable/timer");
  7. function delay(due, scheduler) {
  8. if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
  9. var duration = timer_1.timer(due, scheduler);
  10. return delayWhen_1.delayWhen(function () { return duration; });
  11. }
  12. exports.delay = delay;
  13. //# sourceMappingURL=delay.js.map