![]() |
Home | Libraries | People | FAQ | More |
Set the allowed cancellation types, default is terminal.
void set_allowed_cancellation( net::cancellation_type allowed_cancellation_types = net::cancellation_type::terminal);
This replaces the cancellation state: the recorded types are discarded,
and anything connected to the slot returned by get_cancellation_slot is disconnected.
It must not be called while an intermediate operation is outstanding, and
the recorded types should be checked before calling it.