zng::task

Function join_context

source
pub fn join_context<A, B, RA, RB>(op_a: A, op_b: B) -> (RA, RB)
where A: FnOnce(FnContext) -> RA + Send, B: FnOnce(FnContext) -> RB + Send, RA: Send, RB: Send,
Expand description

Rayon join context with local context.

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

See rayon::join_context for more details about join.