mirror of
https://github.com/denoland/deno.git
synced 2024-12-13 11:02:19 -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,
|
||
|
};
|