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