|
void | CompleteSuccess (T val) |
|
void | CompleteError (Exception ex) |
|
Promise< T > | Then (Action< T > callback) |
|
Promise< T > | Error (Action< Exception > errback) |
|
Promise< TU > | Map< TU > (Func< T, TU > callback) |
|
PromiseU | FlatMap< PromiseU, U > (Func< T, PromiseU > callback, Func< PromiseU > factory) |
|
Promise< TU > | FlatMap< TU > (Func< T, Promise< TU >> callback) |
|
T | GetResult () |
|
Promise< T > | GetAwaiter () |
|
|
static Promise< T > | Successful (T value) |
|
static Promise< T > | Failed (Exception err) |
|
static SequencePromise< T > | ObservableSequence< T > (IList< Promise< T >> promises) |
|
static Promise< List< T > > | Sequence< T > (IList< Promise< T >> promises) |
|
static Promise< List< T > > | Sequence< T > (params Promise< T >[] promises) |
|
static Promise< Unit > | ExecuteSerially< T > (List< Func< Promise< T >>> generators) |
| 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) |
| Given a list of promise generator functions, process the list, but in a rolling fasion. At any given moment, the highest number of promises running will equal maxProcessSize. As soon a promise finishes, a new promise may start. More...
|
|
static void | SetPotentialUncaughtErrorHandler (PromiseEvent handler) |
|
|
bool | IsCompleted => done |
|
static readonly Unit | Unit = new Unit() |
|
void | InvokeUncaughtPromise () |
|
Action< Exception > | errbacks |
|
Exception | err |
|
bool | done |
|
bool | HadAnyErrbacks [get, protected set] |
|
◆ ExecuteRolling< T >()
Given a list of promise generator functions, process the list, but in a rolling fasion. At any given moment, the highest number of promises running will equal maxProcessSize. As soon a promise finishes, a new promise may start.
- Parameters
-
maxProcessSize | |
generators | |
- Template Parameters
-
- Returns
◆ ExecuteSerially< T >()
Given a list of promise generator functions, process the whole list, but serially. Only one promise will be active at any given moment.
- Parameters
-
- Template Parameters
-
- Returns
- A single promise of Unit to represent the completion of the processing. Any other side effects need to be handled separately
The documentation for this class was generated from the following file:
- client/Packages/com.disruptorbeam.engine/Common/Runtime/Promise.cs