pub fn for_each<I, F, T>(i: I, f: F)where I: Iterator<Item = T>, F: Fn(T) + Sync, T: Send,
Calls the closure on each item in parallel and waits for completion.
The closure must be Sync, and iterator items must be Send.
Sync
Send