Template Class CallbackWrapper

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class CallbackWrapper : public fuse_core::CallbackWrapperBase

Public Types

using CallbackFunction = std::function<T(void)>

Public Functions

inline explicit CallbackWrapper(CallbackFunction callback)

Constructor.

Parameters:

callback[in] The function to be called from the callback queue

inline std::future<T> getFuture()

Get a future<T> object that represents the function’s return value.

inline virtual void call() override

Call this function. This is used by the callback queue.

inline virtual void call()

Call this function. This is used by the callback queue.