Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

io_context::poll_one (1 of 2 overloads)

Run the io_context object's event processing loop to execute one ready handler.

count_type poll_one();

The poll_one() function runs at most one handler that is ready to run, without blocking.

Return Value

The number of handlers that were executed.