boost::corosio::basic_io_context::run_one

Process at most one pending work item.

Synopsis

std::size_t
run_one();

Description

This function blocks until one work item has been executed or stop() is called. The context is stopped when there is no more outstanding work.

The context must be restarted with restart() before calling this function again after it returns.

Return Value

The number of handlers executed (0 or 1).

Created with MrDocs