cancellation_token::none Method
Returns a cancellation token which can never be subject to cancellation.
static cancellation_token none();
Return Value
A cancellation token that cannot be canceled.
Remarks
The none() token can be explicitly assigned to a task_group or structured_task_group to block the implicit cancellation propagation from a parent construct. In conjuction with run_with_cancellation_token, it can also be used to safe guard parallel algorithms from unintended cancellation from above.
Requirements
Header: ppl.h
Namespace: concurrency