type of the promise resolution result.
Gets the derived Promise controlled by the current instance.
Cancels the derived Promise.
true if the derived Promise has just been rejected with PromiseCancelledError;
otherwise it means the Promise has already been settled before.
Rejects the derived Promise with the specified rason.
the rejection reason, or the Error causing the rejection.
true if the derived Promise has just been rejected;
otherwise it means the Promise has already been settled before.
Resolves the derived Promise with the specified result.
the resolution result, or a PromiseLike that can be furtherly resolved.
true if the derived Promise has just been resolved;
otherwise it means the Promise has already been settled before.
Generated using TypeDoc
Resolves or rejects a
Promisefrom outside of it.This class is similar to
Deferredbut it explicitly separates the promise and its control side into two different objects.PromiseLikeResolutionSource