Skip to main content

par_run

Function par_run 

Source
pub fn par_run(jobs: &mut [&mut (dyn FnMut() + Send)])
Expand description

Run every job, the first on this thread and the rest on the pool, and return when all have finished. A job that panics on a worker is caught there, and the panic is resumed here after every job has finished (psync’s generated jobs catch their own panics, to replay them in program order; this is the backstop).