import { deadline } from "https://deno.land/x/proc@0.21.9/legacy/deps.ts";
Create a promise which will be rejected with DeadlineError
when
a given delay is exceeded.
Note: Prefer to use AbortSignal.timeout
instead for the APIs
that accept AbortSignal
.