Spec-Zone.ru › Deno 1

setTimeout

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);
function setTimeout(
cb: (...args: any[]) => void,
delay?: number,
...args: any[],
): number;
setTimeout(cb: (...args: any[]) => void, delay?: number, ...args: any[]): number

Parameters

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

Return Type

number

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/setTimeout

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API