Beamable SDK
Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Beamable.Common.PromiseBase Class Reference

This type defines the base for the Beamable Promise. More...

Inheritance diagram for Beamable.Common.PromiseBase:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.PromiseBase:
Collaboration graph
[legend]

Static Public Member Functions

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...
 

Static Public Attributes

static readonly Unit Unit = new Unit()
 

Protected Member Functions

void InvokeUncaughtPromise ()
 

Protected Attributes

Action< Exception > errbacks
 
Exception err
 
ExceptionDispatchInfo errInfo
 
StackTrace _errStackTrace
 
object _lock = new object()
 

Properties

bool HadAnyErrbacks [getprotected set]
 True if there are any registered error handlers.
 
bool done [getset]
 
static Promise< UnitSuccessfulUnit [get]
 
bool IsCompleted [get]
 True when the promise has completed; false otherwise.
 
static bool HasUncaughtErrorHandler [get]
 

Detailed Description

This type defines the base for the Beamable Promise.

Related Links

img beamable-logo

Member Function Documentation

◆ SetPotentialUncaughtErrorHandler()

static void Beamable.Common.PromiseBase.SetPotentialUncaughtErrorHandler ( PromiseEvent  handler,
bool  replaceExistingHandlers = true 
)
inlinestatic

Set error handlers for uncaught promise errors. Beamable has a default handler set in its API initialization.

Parameters
handlerThe new error handler.
replaceExistingHandlersWhen TRUE, will replace all previously set handlers. When FALSE, will add the given handler.

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