Function embassy_futures::select::select_array
source · pub fn select_array<Fut: Future, const N: usize>(
arr: [Fut; N]
) -> SelectArray<Fut, N> ⓘ
Expand description
Creates a new future which will select over an array of futures.
The returned future will wait for any future to be ready. Upon completion the item resolved will be returned, along with the index of the future that was ready.
If the array is empty, the resulting future will be Pending forever.