pub fn parallel_map<F, T>(items: Vec<T>, f: F) -> Result<Vec<T>>where F: Fn(T, &ParallelContext) -> Result<T> + Send + Sync, T: Send,
Map function across items in parallel