Skip to main content

parallel_map

Function parallel_map 

Source
pub async fn parallel_map<F, T, R>(
    pool: &ComputePool,
    items: Vec<T>,
    f: F,
) -> Result<Vec<R>>
where F: Fn(T) -> R + Sync + Send + 'static, T: Send + 'static, R: Send + 'static,
Expand description

Execute multiple functions in parallel using scope