Skip to main content
variable sleep
import { sleep } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Delays the execution of an asynchronous function.

Delay executing part of an async function, by putting it to sleep, returning a Promise.

type

(ms: number) => unknown