delay.js 313 B

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