2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-07-02 14:19:30 -04:00
|
|
|
import timers from "node:timers";
|
2023-02-14 11:38:45 -05:00
|
|
|
|
2024-09-12 16:30:49 -04:00
|
|
|
export const setTimeout = timers.promises.setTimeout;
|
|
|
|
export const setImmediate = timers.promises.setImmediate;
|
|
|
|
export const setInterval = timers.promises.setInterval;
|
2023-02-14 11:38:45 -05:00
|
|
|
|
2024-09-12 16:30:49 -04:00
|
|
|
export const scheduler = timers.promises.scheduler;
|
2024-07-31 06:00:01 -04:00
|
|
|
|
2023-02-14 11:38:45 -05:00
|
|
|
export default {
|
|
|
|
setTimeout,
|
|
|
|
setImmediate,
|
|
|
|
setInterval,
|
2024-09-11 19:02:50 -04:00
|
|
|
scheduler,
|
2023-02-14 11:38:45 -05:00
|
|
|
};
|