Skip to main content

run_units

Function run_units 

Source
pub fn run_units<U: PoolUnit>(units: Vec<U>) -> Vec<UnitOutcome<U::Output>>
Expand description

Run every unit to completion, returning one outcome per unit in unit order.

With an installed pool, units run on its fixed workers (distinct workers for a burst up to the pool width). Without one, a std::thread::scope spawn preserves the historical behavior for tests and batch tools. A nested call from a pool worker runs inline to avoid queueing work behind its own blocked join.