Skip to main content

run_on_pool

Function run_on_pool 

Source
pub fn run_on_pool<'a, F: FnOnce() + Send + 'a>(
    jobs: impl IntoIterator<Item = F>,
)
Expand description

Run jobs on the rayon pool and wait for all of them. Pool threads do not have the caller’s FPU state, so every job runs under it. Without the parallel feature, or with a single thread, the jobs run in order on the calling thread.