interval.js 503 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.interval = void 0;
  4. var async_1 = require("../scheduler/async");
  5. var timer_1 = require("./timer");
  6. function interval(period, scheduler) {
  7. if (period === void 0) { period = 0; }
  8. if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
  9. if (period < 0) {
  10. period = 0;
  11. }
  12. return timer_1.timer(period, period, scheduler);
  13. }
  14. exports.interval = interval;
  15. //# sourceMappingURL=interval.js.map