asio C++ library

PrevUpHomeNext

io_context::stopped

Determine whether the io_context object has been stopped.

bool stopped() const;

This function is used to determine whether an io_context object has been stopped, either through an explicit call to stop(), or due to running out of work. When an io_context object is stopped, calls to run(), run_one(), poll() or poll_one() will return immediately without invoking any handlers.

Return Value

true if the io_context object is stopped, otherwise false.


PrevUpHomeNext