Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

basic_yield_context::reset_cancellation_state (3 of 3 overloads)

Reset the cancellation state associated with the coroutine.

    typename InFilter,
    typename OutFilter>
void reset_cancellation_state(
    InFilter && in_filter,
    OutFilter && out_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<InFilter>(in_filter), std::forward<OutFilter>(out_filter)), into the current coroutine's cancellation state object.