|
Lely core libraries 2.3.2
|
A basic task. More...
#include <task.hpp>


Public Member Functions | |
| template<class F > | |
| Task (ev_exec_t *exec, F &&f) | |
| Constructs a task from a callable object with an associated executor (can be nullptr). | |
| template<class F > | |
| Task (F &&f) | |
| Constructs a task from a callable object. | |
| Executor | get_executor () const noexcept |
| Returns the executor to which the task is (to be) submitted. | |
Additional Inherited Members | |
Data Fields inherited from ev_task | |
| ev_exec_t * | exec |
| A pointer to the executor to which the task is (to be) submitted. | |
| ev_task_func_t * | func |
| The function to be invoked when the task is run. | |
A basic task.
This class turns a callable object with signature void() into a task which can be submitted to an executor.