Creates a promise and a dependent cancellation token.
The dependent cancellation token will be canceled if the specified cancellationToken is canceled while the promise is pending.
cancellationToken
A new Promise.
The token that provides notification of cancellation.
The executor passed the resolve and reject functions for the promise, as well as the dependent cancellation token. If cancellation occurs after either resolve or reject is called, then the dependent token is not cancelled.
Generated using TypeDoc
Creates a promise and a dependent cancellation token.
The dependent cancellation token will be canceled if the specified
cancellationToken
is canceled while the promise is pending.Returns
A new Promise.