31 virtual void runTaskInQueue(
const std::function<
void()> &task) = 0;
32 virtual void runTaskInQueue(std::function<
void()> &&task) = 0;
33 virtual std::string getName()
const
46 std::promise<int> prom;
47 std::future<int> fut = prom.get_future();
48 runTaskInQueue([&]() {
This class is a pure virtual class that can be implemented as a SerialTaskQueue or a ConcurrentTaskQu...
Definition TaskQueue.h:29
void syncTaskInQueue(const std::function< void()> &task)
Run a task in the queue synchronously. This means that the task is executed before the method returns...
Definition TaskQueue.h:44
Definition EventLoop.h:34