|
ecor
|
Concept for stoppable tokens, requires that the type has stop_requested and stop_possible member functions that return bool, is copyable, equality comparable, and swappable. More...
#include <ecor.hpp>
Concept for stoppable tokens, requires that the type has stop_requested and stop_possible member functions that return bool, is copyable, equality comparable, and swappable.
Stop tokens provide an API for checking if a stop has been requested, and if stopping is possible. They are used in the environment to allow senders and receivers to cooperatively handle cancellation of asynchronous operations.