ledger-core
Public Member Functions | List of all members
ledger::core::Promise< T > Class Template Reference

Public Member Functions

 Promise (const T &value)
 
 Promise (const Exception &failure)
 
void complete (const Try< T > &result)
 
bool tryComplete (const Try< T > &result)
 
void completeWith (const Future< T > &future)
 
void tryCompleteWith (const Future< T > &future)
 
bool trySuccess (const T &value)
 
bool tryFailure (const Exception &exception)
 
void success (const T &value)
 
void failure (const Exception &exception)
 
bool isCompleted () const
 
Future< T > getFuture () const
 

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