|
|
| SequencePromise (int count) |
| |
| SequencePromise< T > | OnElementError (Action< SequenceEntryException > handler) |
| | Attach a callback that will trigger anytime a promise fails More...
|
| |
| SequencePromise< T > | OnElementSuccess (Action< SequenceEntrySuccess< T > > handler) |
| | Attach a callback that will trigger anytime a promise succeeds More...
|
| |
|
void | CompleteSuccess () |
| | Mark the entire sequence promise as complete
|
| |
| void | ReportEntryError (SequenceEntryException exception) |
| | When a promise has failed, report the failure. One failed promise will cause the entire sequence promise to be considered a failed promise. More...
|
| |
| void | ReportEntrySuccess (SequenceEntrySuccess< T > success) |
| | When a promise has succeeded, report the success. All promises must report success for the entire sequence promise to succeed. More...
|
| |
| void | ReportEntrySuccess (int index, T result) |
| |
| void | ReportEntryError (int index, Exception err) |
| |
| void | CompleteSuccess (T val) |
| | Call to set the value and resolve the Promise More...
|
| |
|
void | CompleteSuccess () |
| |
| 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...
|
| |
|
|
int | SuccessCount [get] |
| | The current count of successful promises
|
| |
|
int | ErrorCount [get] |
| | The current count of failed promises
|
| |
|
int | Total [get] |
| | The current count of completed promises
|
| |
|
int | Count [get] |
| | The number of promises that this sequence reprensents
|
| |
|
float | Ratio [get] |
| | The ratio of completed promises to total promises. This will be 1 when all promises have completed.
|
| |
|
bool | HasProcessedAllEntries [get] |
| | True when all promises have completed; false otherwise
|
| |
|
IEnumerable< T > | SuccessfulResults [get] |
| | An enumeration of the successful results. There will be a T for each successful promise.
|
| |
|
static Promise | Success [get] |
| |
|
| 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) |
| |
This type defines the Beamable SequencePromise.
Related Links
