Skip to main content
Module

x/proc/deps.ts>deadline

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function deadline
import { deadline } from "https://deno.land/x/proc@0.19.9/deps.ts";

Create a promise which will be rejected with DeadlineError when a given delay is exceeded.

Parameters

p: Promise<T>
delay: number

Returns

Promise<T>