返回 cancellation_token 与此源。
cancellation_token get_token() const;
返回值
取消标记与此源。
备注
,当取消操作时,可以轮询取消的返回的标记或提供要调用的回调。
有关更多信息,请参见 cancellation_token 类。
要求
**标头:**ppl.h
命名空间: 并发
返回 cancellation_token 与此源。
cancellation_token get_token() const;
取消标记与此源。
,当取消操作时,可以轮询取消的返回的标记或提供要调用的回调。
有关更多信息,请参见 cancellation_token 类。
**标头:**ppl.h
命名空间: 并发