Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
async_base::cancelled

Returns the cancellation recorded for this operation.

Synopsis
net::cancellation_type
cancelled() const;
Description

The record is the allowed part of the most recent cancellation emitted on the slot associated with the final completion handler, and is discarded when the allowed types are set. A composed operation should check it when it resumes, before starting another intermediate operation, since a cancellation emitted after the previous one completed had no intermediate operation to cancel.

Return Value

The allowed types of the most recent emission, or net::cancellation_type::none.


PrevUpHomeNext