Beamable SDK
Public Member Functions | Static Public Member Functions | List of all members
Core.Platform.SDK.Promise< T > Class Template Reference
Inheritance diagram for Core.Platform.SDK.Promise< T >:
Inheritance graph
[legend]
Collaboration diagram for Core.Platform.SDK.Promise< T >:
Collaboration graph
[legend]

Public Member Functions

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)
 
Promise< TU > FlatMap< TU > (Func< T, Promise< TU >> callback)
 
GetResult ()
 
Promise< T > GetAwaiter ()
 

Static Public Member Functions

static Promise< T > Successful (T value)
 
static Promise< T > Failed (Exception err)
 
static Promise< List< T > > Sequence< T > (IList< Promise< T >> promises)
 
static Promise< List< T > > Sequence< T > (params Promise< T >[] promises)
 

Additional Inherited Members

- Public Attributes inherited from Core.Platform.SDK.PromiseBase
bool IsCompleted => done
 
- Static Public Attributes inherited from Core.Platform.SDK.PromiseBase
static readonly Unit Unit = new Unit()
 
- Protected Attributes inherited from Core.Platform.SDK.PromiseBase
Action< Exception > errbacks
 
Exception err
 
bool done
 

The documentation for this class was generated from the following file: