Creates a special promise that can be substituted with another promise.
The exposed method returns a promise that resolves to the currently substituted promise.
exposed
The substitute method takes in a new promise which is used for resolution, provided the exposed promise has not already resolved.
substitute
The is_settled method indicates whether the promise has been settled.
is_settled
Generated using TypeDoc
Creates a special promise that can be substituted with another promise.
The
exposed
method returns a promise that resolves to the currently substituted promise.The
substitute
method takes in a new promise which is used for resolution, provided theexposed
promise has not already resolved.The
is_settled
method indicates whether the promise has been settled.