import { asyncUtils } from "https://deno.land/x/dtils@2.5.0/deps.ts";
const { deadline } = asyncUtils;
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 accept AbortSignal
.