Common code for Futures that doesn't need to be templated. More...
#include <Future.h>
Public Member Functions | |
| const _private::FutureData< T >::ValueType & | getValue () const |
| Get the Value object. More... | |
| _private::FutureData< T >::ValueType & | getValue () |
| Get the Value object. More... | |
| void | assign (const typename _private::FutureData< T >::ValueType &val) |
| void | assign (typename _private::FutureData< T >::ValueType &&val) |
| void | assign (Future_Common< T > val) |
| Makes this Future to point to the same value as the given Future. More... | |
| template<class F > | |
| int | subscribeCallback (F &&f) const |
| Subscribe callback to be executed when future is ready (valid or error) More... | |
| int | unsubscribeCallback (int id) const |
| Unsubscribe given callback. More... | |
| Future_Common (const Future_Common &f) noexcept | |
| Future_Common (Future_Common &&f) noexcept | |
| Future_Common & | operator= (const Future_Common &f) noexcept |
| Future_Common & | operator= (Future_Common &&f) noexcept |
Common code for Futures that doesn't need to be templated.
| T |
|
inline |
|
inline |
Get the Value object.
|
inline |
Get the Value object.
|
inline |
Subscribe callback to be executed when future is ready (valid or error)
| [in] | F | Callable with signature void( \ref mel::core::FutureValue& ) |
|
inline |
Unsubscribe given callback.
because use of lambda, unsubscription can only be done by id (returned by subscribeCallback)