...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Set the allowed cancellation types, default is terminal
.
void set_allowed_cancellation( net::cancellation_type allowed_cancellation_types = net::cancellation_type::terminal);