共用方式為


cancellation_token_source::cancel 方法

取消語彙基元。 任何使用語彙基元的 task_groupstructured_task_grouptask 都會在進行這個呼叫時取消,並在下一個中斷點擲回例外狀況。

void cancel() const;

需求

標頭: pplcancellation_token.h

**命名空間:**concurrency

請參閱

參考

cancellation_token_source 類別