std::execution::let_stopped
來自 cppreference.com
| 定義於標頭檔案 <execution> |
||
| execution::sender auto let_stopped( execution::sender auto input, std::invocable auto function ); |
(C++26 起) | |
[編輯] 引數
| input | - | 傳送者(sender),一旦停止,會發送“停止令牌”來執行函式。 |
| function | - | 可呼叫物件,在 input sender 發生錯誤時被呼叫,處理錯誤。 |
[編輯] 返回值
返回一個傳送者,描述了由 input sender 描述的任務圖,並添加了一個在傳送“停止”訊號時呼叫的節點。
[編輯] 示例
| 本節不完整 原因:無示例 |