Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.d.ts>__timers.setTimeout

A modern runtime for JavaScript and TypeScript.
Go to Latest
function __timers.setTimeout
import { __timers } from "https://deno.land/x/deno@v0.30.0/cli/js/lib.deno_runtime.d.ts";
const { setTimeout } = __timers;

Sets a timer which executes a function once after the timer expires.

Parameters

cb: (...args: Args) => void
optional
delay: number
...args: Args

Returns

number