std::execution:: when_all
From cppreference.net
C++
Execution control library
|
定义于头文件
<execution>
|
||
|
execution
::
sender
auto
when_all
(
execution
::
sender
auto
...
inputs
)
;
|
(C++26 起) | |
目录 |
参数
| 输入 | - |
用于阻塞
when_all
完成的发送器集合。仅可包含能以单组值完成的发送器。
|
返回值
返回一个在所有输入发送器完成后即完成的发送器。此发送器发送的值是各个输入发送器发送的值,按照传递给
when_all
的参数顺序排列。
注释
-
由
when_all返回的发送器在最后一个输入发送器完成的执行资源上内联完成,除非在when_all启动前请求了stop,此时它会在调用 start 时内联完成。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(concurrency TS)
|
生成一个 future,当所有给定的 future 或
shared_futures
就绪时该 future 变为就绪状态
(函数模板) |