1#ifndef UVW_WORK_INCLUDE_H
2#define UVW_WORK_INCLUDE_H
30 static void work_callback(uv_work_t *req);
31 static void after_work_callback(uv_work_t *req,
int status);
34 using task = std::function<void(
void)>;
36 explicit work_req(loop::token token, std::shared_ptr<loop> ref, task t);
int queue()
Runs the given task in a separate thread.