...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Inherited from posix::descriptor.
Wait for the descriptor to become ready to read, ready to write, or to have pending error conditions.
void wait( wait_type w);
This function is used to perform a blocking wait for a descriptor to enter a ready to read, write or error condition state.
Specifies the desired descriptor state.
Waiting for a descriptor to become readable.
boost::asio::posix::stream_descriptor descriptor(io_context); ... descriptor.wait(boost::asio::posix::stream_descriptor::wait_read);