cancellation_token_source::get_token 方法

返回一个与此源相关联的取消标记。 如果发生取消操作,则返回的标记可能取消或提供回调。

cancellation_token get_token() const;

返回值

与此源关联的取消标记。

要求

**标头:**pplcancellation_token.h

**命名空间:**并发

请参见

参考

cancellation_token_source 类