function setTimeout
Usage in Deno
import { setTimeout } from "node:timers/promises";
setTimeout<T = void>(): Promise<T>
import { setTimeout, } from 'node:timers/promises'; const res = await setTimeout(100, 'result'); console.log(res); // Prints 'result'
optional
value: T
A value with which the promise is fulfilled.
optional
options: TimerOptions
Promise<T>