std::execution::let_stopped
来自 cppreference.cn
定义于头文件 <execution> |
||
execution::sender auto let_stopped( execution::sender auto input, std::invocable auto function ); |
(自 C++26 起) | |
[编辑] 参数
input | - | sender,一旦停止,发送 "stop token" 以执行函数 |
function | - | 当输入 sender 发生错误时,要使用错误调用的可调用对象 |
[编辑] 返回值
返回一个 sender,描述由输入 sender 描述的任务图,并添加一个在发送 "stopped" 信号时调用的节点。
[编辑] 示例
本节不完整 原因:没有示例 |