Skip to main content
Module

x/timeout/timeout.ts>wait

Abortable promise timeout for Deno
Latest
function wait
import { wait } from "https://deno.land/x/timeout@2.4/timeout.ts";

Abortable promise that resolves when timed out

Parameters

delay: number

Milliseconds to wait

Returns

Abortable<never>

An abortable promise