Module rayon_core::join

source ·

Functions

  • Takes two closures and potentially runs them in parallel. It returns a pair of the results from those closures.
  • Identical to join, except that 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.
  • If job A panics, we still cannot return until we are sure that job B is complete. This is because it may contain references into the enclosing stack frame(s).