Skip to main content

parallel_for_each

Function parallel_for_each 

Source
pub fn parallel_for_each<T>(items: &[T], f: impl Fn(&T) + Send + Sync + 'static)
where T: Send + Sync + Clone + 'static,
Expand description

Apply f to every item in items in parallel (no return value).

Like parallel_map but discards results, useful for side-effecting work.