std::execution::let_stopped
来自 cppreference.cn
定义于头文件 <execution> |
||
execution::sender auto let_stopped( execution::sender auto input, std::invocable auto function ); |
(C++26 起) | |
[编辑] 参数
input | - | 发送者(sender),一旦停止,会发送“停止令牌”来执行函数。 |
function | - | 可调用对象,在 input sender 发生错误时被调用,处理错误。 |
[编辑] 返回值
返回一个发送者,描述了由 input sender 描述的任务图,并添加了一个在发送“停止”信号时调用的节点。
[编辑] 示例
本节不完整 原因:无示例 |