|
void | CompleteSuccess (T val) |
| Call to set the value and resolve the Promise More...
|
|
void | CompleteError (Exception ex) |
| Call to throw an exception and resolve the Promise More...
|
|
Promise< T > | Then (Action< T > callback) |
| Call to register a success completion handler callback for the Promise More...
|
|
Promise< T > | Merge (Promise< T > other) |
| Combine the outcome of this promise with the given promise. If this promise completes, the given promise will complete. If this promise fails, the given promise will fail. More...
|
|
Promise< T > | Error (Action< Exception > errback) |
| Call to register a failure completion handler callback for the Promise More...
|
|
Promise< TU > | Map< TU > (Func< T, TU > callback) |
| Takes a promise of type A, and returns a promise of type B with a conversion applied. More...
|
|
PromiseU | FlatMap< PromiseU, U > (Func< T, PromiseU > callback, Func< PromiseU > factory) |
| Takes a promise of type A, and returns a promise of type B with a conversion applied and the promise hierarchy is flattened. More...
|
|
Promise< TU > | FlatMap< TU > (Func< T, Promise< TU > > callback) |
| Takes a promise of type A, and returns a promise of type B with a conversion applied and the promise hierarchy is flattened. More...
|
|
T | GetResult () |
| Get the result of the Promise. More...
|
|
Promise< T > | GetAwaiter () |
| Get the awaiter of the Promise. Once an awaiter is established, this promise will never raise an uncaught exception. More...
|
|
void | CompleteSuccess () |
|
|
static Promise< T > | Successful (T value) |
| Call to set the value and resolve the Promise More...
|
|
static Promise< T > | Failed (Exception err) |
| Call to throw an exception and resolve the Promise More...
|
|
static SequencePromise< T > | ObservableSequence< T > (IList< Promise< T > > promises) |
| Create a SequencePromise<T> from List of Promise<T> More...
|
|
static Promise< List< T > > | Sequence< T > (IList< Promise< T > > promises) |
| Create a Promise of List from a List of Promises. More...
|
|
static Promise< List< T > > | Sequence< T > (params Promise< T >[] promises) |
| Create Sequence Promise from an array of Promises. More...
|
|
static Promise< Unit > | ExecuteSerially< T > (List< Func< Promise< T > > > generators, Func< bool > stopWhen=null) |
| Given a list of promise generator functions, process the whole list, but serially. Only one promise will be active at any given moment. More...
|
|
static SequencePromise< T > | ExecuteRolling< T > (int maxProcessSize, List< Func< Promise< T > > > generators, Func< bool > stopWhen=null) |
| Given a list of promise generator functions, process the list, but in a rolling fashion. More...
|
|
static Promise< Unit > | ExecuteInBatch< T > (int maxBatchSize, List< Func< Promise< T > > > generators) |
| Given a list of promise generator functions, process the list, but in batches of some size. The batches themselves will run one at a time. Every promise in the current batch must finish before the next batch can start. More...
|
|
static SequencePromise< T > | ExecuteInBatchSequence< T > (int maxBatchSize, List< Func< Promise< T > > > generators, Func< bool > stopWhen=null) |
|
static void | SetPotentialUncaughtErrorHandler (PromiseEvent handler, bool replaceExistingHandlers=true) |
| Set error handlers for uncaught promise errors. Beamable has a default handler set in its API initialization. More...
|
|
This type defines the Beamable Promise.
A promise is an object that may produce a single value some time in the future: either a resolved value, or a reason that it’s not resolved (e.g., a network error occurred).
Related Links