Skip to content

Commit 0b242c8

Browse files
committed
Document the use of available_parallelism
(cherry picked from commit 24723fa)
1 parent b27f533 commit 0b242c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rayon-core/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,8 @@ impl<S> ThreadPoolBuilder<S> {
552552
/// may change in the future, if you wish to rely on a fixed
553553
/// number of threads, you should use this function to specify
554554
/// that number. To reproduce the current default behavior, you
555-
/// may wish to use the [`num_cpus`
556-
/// crate](https://crates.io/crates/num_cpus) to query the number
557-
/// of CPUs dynamically.
555+
/// may wish to use [`std::thread::available_parallelism`]
556+
/// to query the number of CPUs dynamically.
558557
///
559558
/// **Old environment variable:** `RAYON_NUM_THREADS` is a one-to-one
560559
/// replacement of the now deprecated `RAYON_RS_NUM_CPUS` environment

0 commit comments

Comments
 (0)