C# Class ALE.Promise

Show file Open project: blesh/ALE

Protected Properties

Property Type Description
ErrorCallbacks List>
ThenCallbacks List>

Public Methods

Method Description
Error ( Action callback ) : Promise
Then ( Action callback ) : Promise
To ( Action act ) : Promise
When ( ) : Promise

Private Methods

Method Description
PendError ( string reason ) : void
PendThen ( object result ) : void
Promise ( Action act ) : System

Method Details

Error() public method

public Error ( Action callback ) : Promise
callback Action
return Promise

Then() public method

public Then ( Action callback ) : Promise
callback Action
return Promise

To() public static method

public static To ( Action act ) : Promise
act Action
return Promise

When() public static method

public static When ( ) : Promise
return Promise

Property Details

ErrorCallbacks protected property

protected List> ErrorCallbacks
return List>

ThenCallbacks protected property

protected List> ThenCallbacks
return List>