libqi-api
2.8.7.4
|
#include <executioncontext.hpp>
Public Member Functions | |
void | setup (boost::function< void(qi::Promise< T >)> cancelCallback, FutureCallbackType async=FutureCallbackType_Async) |
![]() | |
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... | |
ValueType & | value () |
void | trigger () |
void | setOnCancel (boost::function< void(qi::Promise< T > &)> cancelCallback) |
Promise< T > & | operator= (const Promise< T > &rhs) |
Additional Inherited Members | |
![]() | |
using | ValueType = typename detail::FutureType< T >::type |
![]() | |
void | setup (boost::function< void(qi::Promise< T > &)> cancelCallback, FutureCallbackType async=FutureCallbackType_Auto) |
Promise (Future< T > &f) | |
![]() | |
Future< T > | _f |
Definition at line 138 of file executioncontext.hpp.
|
inline |
Definition at line 141 of file executioncontext.hpp.