speculative_execute

Function speculative_execute 

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

Parallel execution with speculation (try both parallel and sequential)