pub fn parallel_map_result<T, U, E, F>(items: &[T], f: F) -> Result<Vec<U>, E>where T: Sync, U: Send, E: Send, F: Fn(&T) -> Result<U, E> + Sync + Send,
Parallel map function that handles Results