Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xdg/vendor/types/deno.d.ts>setTimeout

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function setTimeout
import { setTimeout } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.d.ts";

Sets a timer which executes a function once after the timer expires. Returns an id which may be used to cancel the timeout.

setTimeout(() => { console.log('hello'); }, 500);

Parameters

cb: (...args: any[]) => void
optional
delay: number
...args: any[]

Returns

number