Function parallelize

Source
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,
Expand description

Process an iterator in parallel.