timeoutProvider.js 617 B

123456789101112131415
  1. export const timeoutProvider = {
  2. setTimeout(handler, timeout, ...args) {
  3. const { delegate } = timeoutProvider;
  4. if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
  5. return delegate.setTimeout(handler, timeout, ...args);
  6. }
  7. return setTimeout(handler, timeout, ...args);
  8. },
  9. clearTimeout(handle) {
  10. const { delegate } = timeoutProvider;
  11. return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
  12. },
  13. delegate: undefined,
  14. };
  15. //# sourceMappingURL=timeoutProvider.js.map