The cancellation_token_source class represents the ability to cancel an operation.
class cancellation_token_source;
|
Name |
Description |
|---|---|
|
cancellation_token_source::cancellation_token_source Constructor |
Overloaded. Constructs a cancellation_token_source object. |
|
cancellation_token_source::~cancellation_token_source Destructor |
Destructs the cancellation_token_source object. |
cancellation_token_source can be used to request cancellation of a cancelable operation.
Use the cancel method to set all cancellation_token objects that are associated with this cancellation_token_source as canceled.
cancellation_token_source behaves like a smart pointer and is safe to pass around by value.