Beamable SDK
Public Member Functions | Public Attributes | Properties | List of all members
Beamable.Common.SequencePromise< T > Class Template Reference
Inheritance diagram for Beamable.Common.SequencePromise< T >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.SequencePromise< T >:
Collaboration graph
[legend]

Public Member Functions

 SequencePromise (int count)
 
SequencePromise< T > OnElementError (Action< SequenceEntryException > handler)
 
SequencePromise< T > OnElementSuccess (Action< SequenceEntrySuccess< T >> handler)
 
void CompleteSuccess ()
 
void ReportEntryError (SequenceEntryException exception)
 
void ReportEntrySuccess (SequenceEntrySuccess< T > success)
 
void ReportEntrySuccess (int index, T result)
 
void ReportEntryError (int index, Exception err)
 

Public Attributes

int SuccessCount => _successes.Count
 
int ErrorCount => _errors.Count
 
int Total => _errors.Count + _successes.Count
 
float Ratio => HasProcessedAllEntries ? 1 : Total / (float) Count
 
bool HasProcessedAllEntries => Total == Count
 
IEnumerable< T > SuccessfulResults => _successes.Select(s => s.Result)
 

Properties

int Count [get]
 

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