UNPKG

real-cancellable-promise

Version:

A simple cancellable promise implementation that cancels the underlying HTTP call.

7 lines (6 loc) 177 B
/** * If canceled, a [[`CancellablePromise`]] should throw an `Cancellation` object. */ export declare class Cancellation extends Error { constructor(message?: string); }