T

NativeCancelablePromise

A promise for native work; cancel drops it, and stopping the plugin cancels every pending one.

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