pub trait ParallelExt: Parallel {
    fn maybe_par_idx<I, F>(&mut self, threshold: usize, nodes: I, op: F)
    where
        I: Items,
        F: Send + Sync + Fn(&mut Self, usize, I::Elem)
; fn maybe_par<I, F>(&mut self, threshold: usize, nodes: I, op: F)
    where
        I: Items,
        F: Send + Sync + Fn(&mut Self, I::Elem)
, { ... } }

Required Methods

Invoke op in parallel, if swc_ecma_utils is compiled with concurrent feature enabled and nodes.len() is bigger than threshold.

This configures GLOBALS, while not configuring [HANDLER] nor [HELPERS]

Provided Methods

Invoke op in parallel, if swc_ecma_utils is compiled with concurrent feature enabled and nodes.len() is bigger than threshold.

This configures GLOBALS, while not configuring [HANDLER] nor [HELPERS]

Implementors