pub fn parallelize<Items, Item, Map, Output>( items: Items, map: Map, workers: Option<usize>, ) -> impl Iterator<Item = Output>where Items: IntoIterator<Item = Item> + Send + 'static, Item: Send + 'static, Map: FnMut(Item) -> Output + Copy + Send + 'static, Output: Send + 'static,
Process an iterator in parallel.