Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Reset the cancellation state associated with the coroutine.
template< typename Filter> void reset_cancellation_state( Filter && filter) const;
Let P be the cancellation
slot associated with the current coroutine's spawn completion handler. Assigns
a new cancellation_state object S, constructed as S(P, std::forward<Filter>(filter)), into the current coroutine's cancellation
state object.