We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d1dc81 + 53c0dcf commit 74812bdCopy full SHA for 74812bd
examples/raytrace-parallel/src/lib.rs
@@ -60,7 +60,7 @@ impl Scene {
60
// Configure a rayon thread pool which will pull web workers from
61
// `pool`.
62
let thread_pool = rayon::ThreadPoolBuilder::new()
63
- .num_threads(concurrency - 1)
+ .num_threads(concurrency)
64
.spawn_handler(|thread| Ok(pool.run(|| thread.run()).unwrap()))
65
.build()
66
.unwrap();
0 commit comments