Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
async_base::set_allowed_cancellation

Set the allowed cancellation types, default is terminal.

Synopsis
void
set_allowed_cancellation(
    net::cancellation_type allowed_cancellation_types = net::cancellation_type::terminal);
Description

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.


PrevUpHomeNext