| PromiseT Methods |
The PromiseT generic type exposes the following members.
| Name | Description | |
|---|---|---|
| Always | Callback to be executed when the promise completes regardless of whether an error occurred | |
| Cancel |
Cancel the operation
| |
| CancelTargetC |
Set the object to be canceled when the promise is canceled
| |
| Done | Callback to be executed when the promise completes successfully | |
| Equals | (Inherited from Object.) | |
| ExecuteCallbacks |
Execute the stored callbacks for the given condition
| |
| Fail | Callback to be executed when the promise encounters an error | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Notify |
Notify promise listeners of a change in the progres
| |
| Progress | Callback to be executed when the reported progress changes | |
| Reject |
Mark the promise as having encountered an error
| |
| Resolve |
Mark the promise as having completed successfully providing the requested data
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| CancelledT |
Attach a callback that runs when the promise is canceled
(Defined by Promises.) | |
| ContinueT, S |
Continue a promise chain by acting on the previous promise's result and returning a new promise
(Defined by Promises.) | |
| ConvertT, S(FuncT, S) | Overloaded.
Convert a promise using a simple transformation to go from one type to another
(Defined by Promises.) | |
| ConvertT, S(ActionT, PromiseS, ActionException, PromiseS) | Overloaded.
Convert a promise by modifying the done/fail logic in addition to transforming the type.
(Defined by Promises.) | |
| ErrorT |
Attach a callback that runs an error (other than a cancellation error) occurs
(Defined by Promises.) | |
| FailOverT | (Defined by Promises.) | |
| ToTaskT |
Convert a promise to a .Net 4.0 Task for use with the async/await keywords
(Defined by Promises.) | |
| WaitT |
Block the current thread waiting for a promise to complete
(Defined by Promises.) | |
| WithInvokerT |
Changes the invokation logic of the promise (e.g. to trigger invokation on the UI thread)
(Defined by Promises.) |
| Name | Description | |
|---|---|---|
| IPromiseAlways | Callback to be executed when the promise completes regardless of whether an error occurred | |
| IPromiseDone | Callback to be executed when the promise completes successfully | |
| IPromiseFail | Callback to be executed when the promise encounters an error | |
| IPromiseProgress | Callback to be executed when the reported progress changes |