mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
14 lines
421 B
TypeScript
14 lines
421 B
TypeScript
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||
|
import { promisify } from "internal:deno_node/polyfills/util.ts";
|
||
|
import timers from "internal:deno_node/polyfills/timers.ts";
|
||
|
|
||
|
export const setTimeout = promisify(timers.setTimeout),
|
||
|
setImmediate = promisify(timers.setImmediate),
|
||
|
setInterval = promisify(timers.setInterval);
|
||
|
|
||
|
export default {
|
||
|
setTimeout,
|
||
|
setImmediate,
|
||
|
setInterval,
|
||
|
};
|