OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
openpit::asyncengine::Promise< T > Class Template Reference

Producer side used by the dispatcher to resolve a Future<T>. More...

Public Member Functions

void Fail (Error error) const
 
Future< T > GetFuture () const
 
 Promise ()
 
void Resolve (T value) const
 

Detailed Description

template<typename T>
class openpit::asyncengine::Promise< T >

Producer side used by the dispatcher to resolve a Future<T>.

Constructor & Destructor Documentation

◆ Promise()

template<typename T >
openpit::asyncengine::Promise< T >::Promise ( )
inline

Member Function Documentation

◆ Fail()

template<typename T >
void openpit::asyncengine::Promise< T >::Fail ( Error  error) const
inline

◆ GetFuture()

template<typename T >
Future<T> openpit::asyncengine::Promise< T >::GetFuture ( ) const
inline

◆ Resolve()

template<typename T >
void openpit::asyncengine::Promise< T >::Resolve ( value) const
inline