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

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

#include <future.hpp>

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
inlinenodiscard

◆ Resolve()

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