Skip to main content
Module

x/netzo/deno.d.ts>setTimeout

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function setTimeout
import { setTimeout } from "https://deno.land/x/netzo@v0.1.27/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