import { pseudoCancellable } from "https://deno.land/x/grm@0.8.0/deps.ts";
Takes in a regular Promise
and returns a CancellablePromise
. If canceled,
the CancellablePromise
will immediately reject with a Cancellation
, but the asynchronous
operation will not truly be aborted.
Analogous to make-cancellable-promise.
Parameters
promise: PromiseLike<T>