std::execution::let_stopped
来自cppreference.com
在标头 <execution> 定义
|
||
execution::sender auto let_stopped( execution::sender auto input, std::invocable auto function ); |
(C++26 起) | |
[编辑] 参数
input | - | 发送器,一旦停止将发送“停止令牌”以执行函数 |
function | - | 当输入发送器发生错误时以错误调用的可调用体 |
[编辑] 返回值
返回一个发送器,描述输入发送器所描述的任务图,并添加一个节点,当发送了“停止”信号时被调用。
[编辑] 示例
本节未完成 原因:暂无示例 |