libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
qi::detail::DelayedPromise< T > Class Template Reference

#include <executioncontext.hpp>

Public Member Functions

void setup (boost::function< void(qi::Promise< T >)> cancelCallback, FutureCallbackType async=FutureCallbackType_Async)
 
- Public Member Functions inherited from qi::Promise< T >
 Promise (FutureCallbackType async=FutureCallbackType_Auto)
 
template<typename FUNC , typename std::enable_if<!std::is_same< typename std::decay< FUNC >::type, typename std::decay< qi::Promise< T > >::type >::value >::type * = nullptr>
 Promise (FUNC &&cancelCallback, FutureCallbackType async=FutureCallbackType_Auto)
 
 Promise (boost::function< void(qi::Promise< T >)> cancelCallback, FutureCallbackType async=FutureCallbackType_Auto)
 
 Promise (const qi::Promise< T > &rhs)
 
 ~Promise ()
 
void setValue (const ValueType &value)
 
void setError (const std::string &msg)
 
void setCanceled ()
 
bool isCancelRequested () const
 
Future< T > future () const
 Get a future linked to this promise. Can be called multiple times. More...
 
ValueTypevalue ()
 
void trigger ()
 
void setOnCancel (boost::function< void(qi::Promise< T > &)> cancelCallback)
 
Promise< T > & operator= (const Promise< T > &rhs)
 

Additional Inherited Members

- Public Types inherited from qi::Promise< T >
using ValueType = typename detail::FutureType< T >::type
 
- Protected Member Functions inherited from qi::Promise< T >
void setup (boost::function< void(qi::Promise< T > &)> cancelCallback, FutureCallbackType async=FutureCallbackType_Auto)
 
 Promise (Future< T > &f)
 
- Protected Attributes inherited from qi::Promise< T >
Future< T > _f
 

Detailed Description

template<typename T>
class qi::detail::DelayedPromise< T >

Definition at line 138 of file executioncontext.hpp.

Member Function Documentation

template<typename T>
void qi::detail::DelayedPromise< T >::setup ( boost::function< void(qi::Promise< T >)>  cancelCallback,
FutureCallbackType  async = FutureCallbackType_Async 
)
inline

Definition at line 141 of file executioncontext.hpp.


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