cancellation_token_source::get_token Method
Returns a cancellation_token associated with this source.
cancellation_token get_token() const;
Return Value
A cancellation token associated with this source.
Remarks
You can poll the returned token for cancellation or provide a callback to be invoked when cancellation occurs.
For more information, see cancellation_token Class.
Requirements
Header: ppl.h
Namespace: concurrency