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

Public Types

using Callback = std::function< void(const Try< T > &)>
 

Public Member Functions

 Deffered (const Deffered &)=delete
 
 Deffered (Deffered &&)=delete
 
void setResult (const Try< T > &result)
 
void setValue (const T &value)
 
void setError (const Exception &exception)
 
void addCallback (Callback callback, std::shared_ptr< api::ExecutionContext > context)
 
Option< Try< T > > getValue () const
 
bool hasValue () const
 
void trigger ()
 

Friends

class Future< T >
 
class Promise< T >
 

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