scope

Function scope 

Source
pub fn scope<'scope, OP, R>(enabled: bool, op: OP) -> R
where OP: FnOnce(Scope<'_, 'scope>) -> R + Send, R: Send,
Expand description

Creates a new fork-join scope.

See rayon::scope for more details.