cancellation_token_source::get_token Method

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.
This topic has not yet been rated - Rate this topic
Visual Studio 2012

Returns a cancellation_token associated with this source.

cancellation_token get_token() const;

A cancellation token associated with this source.

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.

Header: ppl.h

Namespace: concurrency

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.