Portable concurrency  0.11.0
Public Member Functions | List of all members

The class template promise is a simpliest write end of a future. More...

Public Member Functions

bool is_awaiten () const
 

Detailed Description

template<typename T>
class portable_concurrency::cxx14_v1::promise< T >

The class template promise is a simpliest write end of a future.

Member Function Documentation

◆ is_awaiten()

bool is_awaiten ( ) const
inline

Checks if there is a future or shared_future awaiting for the result from this promise object. This method returns false only if there is absolutelly no way to get a future or shared_future object which can be used to retreive a value or exception set by this promise object.