25#include <asio/io_context.hpp>
26#include <asio/post.hpp>
41template <
typename Function>
44 asio::post(executor->context(type), std::forward<Function>(function));
Definition of IExecutor class.
Namespace of executors to process asynchronous tasks.
OperationType
Enumeration of types of operations.
void async_invoke(const std::shared_ptr< IExecutor > &executor, OperationType type, Function &&function)
Asynchronously invoke a function.
Definition of OperationType enumeration.