共用方式為


task_options::get_cancellation_token Method (Concurrency Runtime)

Returns the cancellation token

cancellation_token get_cancellation_token() const;

Requirements

Header: ppltasks.h

Namespace: concurrency

See Also

Reference

task_options Class (Concurrency Runtime)