| Home | Libraries | People | FAQ | More

### cancellation_type

Enumeration representing the different types of cancellation that may be requested from or implemented by an asynchronous operation.

    enum class cancellation_type : unsigned int

##### Values

none

  Bitmask representing no types of cancellation.

terminal

  Requests cancellation where, following a successful cancellation, the only safe operations on the I/O object are closure or destruction.

partial

  Requests cancellation where a successful cancellation may result in partial side effects or no side effects. Following cancellation, the I/O object is in a well-known state, and may be used for further operations.

total

  Requests cancellation where a successful cancellation results in no apparent side effects. Following cancellation, the I/O object is in the same observable state as it was prior to the operation.

all

  Bitmask representing all types of cancellation.

##### Requirements

Header: `boost/asio/cancellation_type.hpp`

Convenience header: `boost/asio.hpp`