// Copyright 2018-2026 the Deno authors. MIT license.

(function () {
const { core } = __bootstrap;
const timers = core.loadExtScript("ext:deno_node/timers.ts");

const setTimeout = timers.promises.setTimeout;
const setImmediate = timers.promises.setImmediate;
const setInterval = timers.promises.setInterval;
const scheduler = timers.promises.scheduler;

return {
  setTimeout,
  setImmediate,
  setInterval,
  scheduler,
};
})();
