2 - provisional
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
Stability
2 - provisional
Creates a special promise that can be substituted with another promise.
The
exposedmethod returns a promise that resolves to the currently substituted promise.The
substitutemethod takes in a new promise which is used for resolution, provided theexposedpromise has not already resolved.The
is_settledmethod indicates whether the promise has been settled.