TCancellablePromise: Promise<T> & { cancel: () => void }

A promise extended with a cancel() method. Calling cancel() aborts the in-flight operation; the promise still settles, typically with a 'cancelled' result.

Type Parameters

  • T