Deno standard library
Go to Latest
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.// TODO: implement the 'NodeJS.Timeout' and 'NodeJS.Immediate' versions of the timers.// const setTimeout = window.setTimeout;export const clearTimeout = window.clearTimeout;export const setInterval = window.setInterval;export const clearInterval = window.clearInterval;export const setImmediate = ( // deno-lint-ignore no-explicit-any cb: (...args: any[]) => void, // deno-lint-ignore no-explicit-any ...args: any[]): number => window.setTimeout(cb, 0, ...args);export const clearImmediate = window.clearTimeout;
export default { setTimeout, clearTimeout, setInterval, clearInterval, setImmediate, clearImmediate,};