import { deadline } from "https://dotland.deno.dev/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 {@link AbortSignal.timeout
} instead for the APIs
that accept {@link AbortSignal
}.