std::execution::upon_stopped
来自 cppreference.cn
定义于头文件 <execution> |
||
execution::sender auto upon_stopped( execution::sender auto input, std::invocable auto function ); |
(C++26 起) | |
[edit] 参数
input | - | 发送者,一旦接收到“停止令牌”,将通知新节点执行该函数。 |
function | - | 当“停止”信号发送到输入发送者时要调用的可调用对象。 |
[edit] 返回值
返回一个发送者,描述由输入发送者描述的任务图,并在“停止”信号发送到输入发送者的情况下,添加一个调用所提供函数的节点。
[edit] 示例
本节不完整 原因:无示例 |