Function zng::task::scope

source ยท
pub fn scope<'scope, OP, R>(op: OP) -> R
where OP: FnOnce(ScopeCtx<'_, 'scope>) -> R + Send, R: Send,
Expand description

Rayon scope with local context.

This function captures the LocalContext of the calling thread and propagates it to the threads that run the operations.

See rayon::scope for more details about scope.