...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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.
true
if the io_context
object is stopped, otherwise false
.