asio C++ library

PrevUpHomeNext
io_context::basic_executor_type::require (3 of 8 overloads)

Obtain an executor with the relationship.fork property.

constexpr basic_executor_type require(
    execution::relationship_t::fork_t ) const;

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

For example:

auto ex1 = my_io_context.get_executor();
auto ex2 = asio::require(ex1,
    asio::execution::relationship.fork);

PrevUpHomeNext