pub fn execute_balanced(
plan: &LoadBalancePlan,
f: impl Fn(usize, Range<usize>) + Sync + Send,
)Expand description
Execute a function in parallel with load-balanced ranges.
Each range is processed as one Rayon task. The function receives
(worker_id, range).