Skip to main content

for_each

Function for_each 

Source
pub fn for_each<I, F, T>(i: I, f: F)
where I: Iterator<Item = T>, F: Fn(T) + Sync, T: Send,
Expand description

Calls the closure on each item in parallel and waits for completion.

The closure must be Sync, and iterator items must be Send.