std::execution::when_all
來自 cppreference.com
定義於標頭檔案 <execution> |
||
execution::sender auto when_all( execution::sender auto... inputs ); |
(C++26 起) | |
目錄 |
[編輯] 引數
inputs | - | 阻塞 `when_all` 完成的傳送者。只能包含能夠以單一值集完成的傳送者。 |
[編輯] 返回值
返回一個傳送者,該傳送者在所有輸入傳送者完成時完成。此傳送者傳送的值是每個輸入傳送者傳送的值,按傳遞給 `when_all` 的引數順序排列。
[編輯] 注意
- `when_all` 返回的傳送者在最後一個輸入傳送者完成的執行資源上內聯完成,除非在 `when_all` 啟動之前請求 `stop`,在這種情況下它在對啟動的呼叫中內聯完成。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 另請參閱
(併發技術規範) |
生成一個 future,當所有給定的 future 或 `shared_futures` 準備就緒時,該 future 也會準備就緒 (函式模板) |