1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/ext/node/polyfills/timers/promises.ts

15 lines
410 B
TypeScript

// 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,
};