summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/timers/promises.ts
blob: b2896fe8096642961a52dc8ccf6f641b107deb81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import timers from "node:timers";

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

export const scheduler = timers.promises.scheduler;

export default {
  setTimeout,
  setImmediate,
  setInterval,
  scheduler,
};