join_all
Runs any number of futures concurrently and completes with all their outputs, in the order the futures were given.
Every future still pending is polled on each wake-up, so they progress together on one task. An
empty input completes at once with an empty Vec. Like join it needs no
runtime.
Import
Section titled “Import”Cargo feature future (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
futures | I | The futures to run, all of the same type (box them to mix types). |
Returns
Section titled “Returns”impl Future<Output = Vec<<I::Item as Future>::Output>> — A future for the outputs, in input order.
