asio C++ library

PrevUpHomeNext

io_context::basic_executor_type::execute

Execution function.

template<
    typename Function>
void execute(
    Function && f) const;

Do not call this function directly. It is intended for use with the execution::execute customisation point.

For example:

auto ex = my_io_context.get_executor();
execution::execute(ex, my_function_object);

PrevUpHomeNext