interval.js 368 B

1234567891011
  1. import { asyncScheduler } from '../scheduler/async';
  2. import { timer } from './timer';
  3. export function interval(period, scheduler) {
  4. if (period === void 0) { period = 0; }
  5. if (scheduler === void 0) { scheduler = asyncScheduler; }
  6. if (period < 0) {
  7. period = 0;
  8. }
  9. return timer(period, period, scheduler);
  10. }
  11. //# sourceMappingURL=interval.js.map