|
ecor
|
Never stop token, which is a simple implementation of an unstoppable token that can be used as a default stop token in environments where stopping is not supported or needed. More...
#include <ecor.hpp>
Classes | |
| struct | cb_type |
Public Types | |
| template<class > | |
| using | callback_type = cb_type |
Public Member Functions | |
| bool | operator== (never_stop_token const &) const =default |
Static Public Member Functions | |
| static constexpr bool | stop_possible () noexcept |
| static constexpr bool | stop_requested () noexcept |
Never stop token, which is a simple implementation of an unstoppable token that can be used as a default stop token in environments where stopping is not supported or needed.
This token always reports that stopping is not possible and that a stop has not been requested, and its callback type is a no-op callback that does nothing when invoked.