parallel_chunks

Function parallel_chunks 

Source
pub fn parallel_chunks<T, F, R>(
    items: &[T],
    chunk_size: usize,
    f: F,
) -> Vec<Vec<R>>
where T: Sync, R: Send, F: Fn(&[T]) -> Vec<R> + Send + Sync,
Expand description

Parallel chunks - process data in fixed-size chunks