import { deadline } from "https://deno.land/x/dpp_vim@v0.2.0/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
.