Click or drag to resize
Promises Methods

The Promises type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAll(IPromise)
Public methodStatic memberAllT1(IPromiseT1)
Public methodStatic memberAllT1, T2(IPromiseT1, IPromiseT2)
Public methodStatic memberAllT1, T2, T3(IPromiseT1, IPromiseT2, IPromiseT3)
Public methodStatic memberAllT1, T2, T3, T4(IPromiseT1, IPromiseT2, IPromiseT3, IPromiseT4)
Public methodStatic memberCancelledT
Attach a callback that runs when the promise is canceled
Public methodStatic memberContinueT, S
Continue a promise chain by acting on the previous promise's result and returning a new promise
Public methodStatic memberConvertT, S(IPromiseT, FuncT, S)
Convert a promise using a simple transformation to go from one type to another
Public methodStatic memberConvertT, S(IPromiseT, ActionT, PromiseS, ActionException, PromiseS)
Convert a promise by modifying the done/fail logic in addition to transforming the type.
Public methodStatic memberErrorT(IPromiseT, ActionException)
Attach a callback that runs an error (other than a cancellation error) occurs
Public methodStatic memberErrorTErr, T(IPromiseT, ActionTErr)
Attach a callback that runs an error (other than a cancellation error) occurs
Public methodStatic memberFailOverT
Public methodStatic memberPooled
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.
Public methodStatic memberRejectedT
Create a new promise which is already rejected
Public methodStatic memberResolvedT
Create a new promise which is already resolved
Public methodStatic memberToPromiseT
Convert a .Net 4.0 Task to a promise
Public methodStatic memberToTaskT
Convert a promise to a .Net 4.0 Task for use with the async/await keywords
Public methodStatic memberWaitT
Block the current thread waiting for a promise to complete
Public methodStatic memberWithInvokerT
Changes the invokation logic of the promise (e.g. to trigger invokation on the UI thread)
Top
See Also