1 #ifndef UVW_WORK_INCLUDE_H
2 #define UVW_WORK_INCLUDE_H
38 using InternalTask = std::function<void(
void)>;
40 static void workCallback(uv_work_t *req);
43 using Task = InternalTask;
45 explicit WorkReq(ConstructorAccess ca, std::shared_ptr<Loop> ref, InternalTask t);
void queue()
Runs the given task in a separate thread.