std::execution::upon_stopped
來自 cppreference.com
定義於標頭檔案 <execution> |
||
execution::sender auto upon_stopped( execution::sender auto input, std::invocable auto function ); |
(C++26 起) | |
[edit] 引數
input | - | 傳送者,一旦接收到“停止令牌”,將通知新節點執行該函式。 |
function | - | 當“停止”訊號傳送到輸入傳送者時要呼叫的可呼叫物件。 |
[edit] 返回值
返回一個傳送者,描述由輸入傳送者描述的任務圖,並在“停止”訊號傳送到輸入傳送者的情況下,新增一個呼叫所提供函式的節點。
[edit] 示例
本節不完整 原因:無示例 |