import { deadline } from "https://deno.land/x/ddc_vim@v4.3.1/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 accept AbortSignal
.