| Promises Methods |
The Promises type exposes the following members.
| Name | Description | |
|---|---|---|
| All(IPromise) | ||
| AllT1(IPromiseT1) | ||
| AllT1, T2(IPromiseT1, IPromiseT2) | ||
| AllT1, T2, T3(IPromiseT1, IPromiseT2, IPromiseT3) | ||
| AllT1, T2, T3, T4(IPromiseT1, IPromiseT2, IPromiseT3, IPromiseT4) | ||
| CancelledT |
Attach a callback that runs when the promise is canceled
| |
| ContinueT, S |
Continue a promise chain by acting on the previous promise's result and returning a new promise
| |
| ConvertT, S(IPromiseT, FuncT, S) |
Convert a promise using a simple transformation to go from one type to another
| |
| ConvertT, S(IPromiseT, ActionT, PromiseS, ActionException, PromiseS) |
Convert a promise by modifying the done/fail logic in addition to transforming the type.
| |
| ErrorT(IPromiseT, ActionException) |
Attach a callback that runs an error (other than a cancellation error) occurs
| |
| ErrorTErr, T(IPromiseT, ActionTErr) |
Attach a callback that runs an error (other than a cancellation error) occurs
| |
| FailOverT | ||
| Pooled |
Return a promise that resolves upon completion of all the contained promises. Only allow
a select number of promises to be active at a given time.
| |
| RejectedT |
Create a new promise which is already rejected
| |
| ResolvedT |
Create a new promise which is already resolved
| |
| ToPromiseT |
Convert a .Net 4.0 Task to a promise
| |
| ToTaskT |
Convert a promise to a .Net 4.0 Task for use with the async/await keywords
| |
| WaitT |
Block the current thread waiting for a promise to complete
| |
| WithInvokerT |
Changes the invokation logic of the promise (e.g. to trigger invokation on the UI thread)
|