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;

Return Value

A cancellation token associated with this source.

Requirements

Header: pplcancellation_token.h

Namespace: concurrency

See Also

Reference

cancellation_token_source Class