import { deadline } from "https://deno.land/x/ddu_vim@v4.0.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
.