cancellation_token_source::cancel 方法

取消标记。 所有使用标记的 task_groupstructured_task_grouptask 将在此调用时取消,并在下一个中断点引发异常。

void cancel() const;

要求

**标头:**pplcancellation_token.h

**命名空间:**并发

请参见

参考

cancellation_token_source 类