RADLib
RADical C++ application framework
RADCore::RADPromise< T > Class Template Reference

Typed promise that creates RADFutureT. More...

#include <RADCore.h>

Public Member Functions

 RADPromise ()
 Creates a promise/future pair. More...
 
RADFutureT< T > future () const
 Returns the associated typed future. More...
 
void setValue (T value)
 Sets the result value. More...
 
void setException (std::exception_ptr error)
 Sets an exception result. More...
 

Detailed Description

template<typename T>
class RADCore::RADPromise< T >

Typed promise that creates RADFutureT.

Constructor & Destructor Documentation

◆ RADPromise()

template<typename T >
RADCore::RADPromise< T >::RADPromise ( )
inline

Creates a promise/future pair.

Member Function Documentation

◆ future()

template<typename T >
RADFutureT<T> RADCore::RADPromise< T >::future ( ) const
inline

Returns the associated typed future.

◆ setException()

template<typename T >
void RADCore::RADPromise< T >::setException ( std::exception_ptr  error)
inline

Sets an exception result.

◆ setValue()

template<typename T >
void RADCore::RADPromise< T >::setValue ( value)
inline

Sets the result value.


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