Interface PromiseHandle<T>

Source
Expand description

A handle of the promise that breaks down the promise object and its resolve and reject functions

interface PromiseHandle<T> {
    promise: Promise<T>;
    reject: (reason?: unknown) => void;
    resolve: (value: T | PromiseLike<T>) => void;
}

Properties§

§promise: Promise<T>
§reject: { ... }
§resolve: { ... }