Run task with promise parameters
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used to resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
Run task with promise parameters with CancelToken
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used to resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
Cancelable async delay
Cancelable async delay with CancelToken
Yield time slice and not continue if cancelled
Creates a new cancelled task
A cancelled task
Creates a new rejected promise for the provided reason.
The reason the promise was rejected.
A new rejected Promise.
Wait or cancel all task
Wait one and cancel other task
Communicates a request for cancellation
If cancelled, throw CancelGuard
If cancelled will not continue
Register an event that will be triggered when cancelled
Waiting for cancellation
Unregister event
Run task
Even if this function is not called the task will still run
Attaches callbacks for the resolution and/or rejection of the Promise.
Attaches a callback for only the rejection of the Promise.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Yield time slice and not continue if cancelled, using this as CancelToken
Cancelable async delay, using this as CancelToken
Run task with promise parameters, using this as CancelToken
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used to resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
Wait or cancel all task
Wait one and cancel other task
Creates a new Task
Creates a new Task with CancelToken
Has it been cancelled or whether cancellation has been requested
Whether finished
Is running
Generated using TypeDoc
Cancelable async task