work_stealing_map

Function work_stealing_map 

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

Parallel map with work stealing

Note: This is a simplified implementation for demonstration. For production use, consider using a dedicated work-stealing library.