delay.js 374 B

123456789
  1. import { asyncScheduler } from '../scheduler/async';
  2. import { delayWhen } from './delayWhen';
  3. import { timer } from '../observable/timer';
  4. export function delay(due, scheduler) {
  5. if (scheduler === void 0) { scheduler = asyncScheduler; }
  6. var duration = timer(due, scheduler);
  7. return delayWhen(function () { return duration; });
  8. }
  9. //# sourceMappingURL=delay.js.map