pub fn parallel_for_each<T>(items: &[T], f: impl Fn(&T) + Send + Sync + 'static)where T: Send + Sync + Clone + 'static,
Apply f to every item in items in parallel (no return value).
f
items
Like parallel_map but discards results, useful for side-effecting work.
parallel_map