Deferredtype
{
promise: Promise<T>;
resolve: ValueCallback<T>;
reject: ErrorCallback;
}| Property | Type | |
|---|---|---|
.promise | Promise<T> | required |
.resolve | ValueCallback<T> | A callback is a function that is called when something happens with a value. required |
.reject | ErrorCallback | Function that is called when something errors. required |
| Type | |
|---|---|
Promise | |
ValueCallback | A callback is a function that is called when something happens with a value. |
ErrorCallback | Function that is called when something errors. |
Deferred allows you to access the internal resolve/reject callbacks of a Promise.