Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

cancellation_token_source::get_token Method

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.

cancellation_token get_token() const;

A cancellation token associated with this source.

Header: pplcancellation_token.h

Namespace: concurrency

Show:
© 2018 Microsoft