Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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