asio C++ library

PrevUpHomeNext
basic_yield_context::reset_cancellation_state (1 of 3 overloads)

Reset the cancellation state associated with the coroutine.

void reset_cancellation_state() 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), into the current coroutine's cancellation state object.


PrevUpHomeNext