p3_maybe_rayon

Module prelude

Source

Traits§

Functions§

  • Returns the number of threads in the current registry. If this code is executing within a Rayon thread-pool, then this will be the number of threads for the thread-pool of the current thread. Otherwise, it will be the number of threads for the global thread-pool.
  • Takes two closures and potentially runs them in parallel. It returns a pair of the results from those closures.