Function rayon::join_context
[−]
[src]
pub fn join_context<A, B, RA, RB>(oper_a: A, oper_b: B) -> (RA, RB) where
A: FnOnce(FnContext) -> RA + Send,
B: FnOnce(FnContext) -> RB + Send,
RA: Send,
RB: Send,
The join_context
function is identical to join
, except the closures
have a parameter that provides context for the way the closure has been
called, especially indicating whether they're executing on a different
thread than where join_context
was called. This will occur if the second
job is stolen by a different thread, or if join_context
was called from
outside the thread pool to begin with.