The cancellation_token_source
class represents the ability to cancel some cancelable operation.
More...
#include <pplxcancellation_token.h>
cancellation_token_source
. The source can be used to flag cancellation of some cancelable operation. More... task_group
, structured_task_group
, or task
which utilizes the token will be canceled upon this call and throw an exception at the next interruption point. More... cancellation_token_source
which is canceled when one of a series of tokens represented by an STL iterator pair is canceled. More... The cancellation_token_source
class represents the ability to cancel some cancelable operation.
Constructs a new cancellation_token_source
. The source can be used to flag cancellation of some cancelable operation.
Cancels the token. Any task_group
, structured_task_group
, or task
which utilizes the token will be canceled upon this call and throw an exception at the next interruption point.
Creates a cancellation_token_source
which is canceled when the provided token is canceled.
cancellation_token_source
which is canceled when the token provided by the _Src parameter is canceled. Creates a cancellation_token_source
which is canceled when one of a series of tokens represented by an STL iterator pair is canceled.
cancellation_token_source
which is canceled when any of the tokens provided by the range described by the STL iterators contained in the _Begin and _End parameters is canceled. Returns a cancellation token associated with this source. The returned token can be polled for cancellation or provide a callback if and when cancellation occurs.