import { deadline } from "https://deno.land/std@0.212.0/async/mod.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
.