cancellation_token_source::create_linked_source 方法
建立 cancellation_token_source,其會在提供的語彙基元已取消時取消。
static cancellation_token_source create_linked_source(
cancellation_token& _Src
);
template<
typename _Iter
>
static cancellation_token_source create_linked_source(
_Iter_Begin,
_Iter_End
);
參數
_Iter
_Src
語彙基元,其取消將會導致取消傳回的語彙基元來源。 請注意,傳回的語彙基元來源也可以獨立取消,不受此參數包含的來源影響。_Begin
STL 迭代器,對應於接聽取消之語彙基元範圍的開頭。_End
STL 迭代器,對應於接聽取消之語彙基元範圍的結尾。
傳回值
cancellation_token_source,其會在 _Src 參數提供的語彙基元已取消時取消。
需求
標頭: pplcancellation_token.h
**命名空間:**concurrency