Skip to main content

all

Function all 

Source
pub fn all<T: IntoAll>(futures: T) -> All<T::Branches> ⓘ
Expand description

Runs animations at the same time and completes when all of them have.

Takes a tuple of up to 12 futures of any types (all((a, b, c))), or any number of futures of one type: a Vec, an array or an iterator, e.g. all(cards.iter().map(|c| c.fade_in())). Returns their outputs (a tuple or a Vec).

Every branch starts at the same time; afterwards the task continues from the latest end time among them.