32#ifndef ASYNC_TASK_RUNNER_INCLUDED
33#define ASYNC_TASK_RUNNER_INCLUDED
191 template <
typename TaskHandler>
195 std::forward<TaskHandler>(handler));
220 template <
typename Func,
typename Arg1,
typename... Args>
221 Application::TaskId
operator()(Func&& f, Arg1&& arg1, Args&&... args)
224 std::forward<Arg1>(arg1), std::forward<Args>(args)...);
The core class for writing asyncronous applications.
static Application & app(void)
Get the one and only application instance.
void runTask(sigc::slot< void > task)
Run a task from the Async main loop.
Run tasks from the Async main thread with automatic cleanup.
Application::TaskId operator()(TaskHandler &&handler)
Run a task from the Async main loop.
Application::TaskId operator()(Func &&f, Arg1 &&arg1, Args &&... args)
Run a task from the Async main loop.
TaskRunner(void)
Default constructor.
TaskRunner & operator=(const TaskRunner &)=delete
Assignment operator is deleted.
TaskRunner(const TaskRunner &)=delete
Copy constructor is deleted.
~TaskRunner(void)
Destructor.
void cancel(void)
Cancel all queued tasks for this object.
Namespace for the asynchronous programming classes.