Skip to main content

par_update

Function par_update 

Source
pub(crate) fn par_update<T: Send>(
    out: &mut [T],
    f: impl Fn(usize, &mut T) + Sync + Send,
)
Expand description

f(i, &mut out[i]) for every i (over threads with the parallel feature)