Skip to content

Commit 382c2bb

Browse files
bishopcheckmatecuviper
authored andcommitted
doc: be more clear about what the 'spawn' does
(cherry picked from commit 2e071c2)
1 parent 6152a3f commit 382c2bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rayon-core/src/spawn/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use crate::unwind;
55
use std::mem;
66
use std::sync::Arc;
77

8-
/// Fires off a task into the Rayon threadpool in the "static" or
9-
/// "global" scope. Just like a standard thread, this task is not
8+
/// Puts the task into the Rayon threadpool's job queue in the "static"
9+
/// or "global" scope. Just like a standard thread, this task is not
1010
/// tied to the current stack frame, and hence it cannot hold any
1111
/// references other than those with `'static` lifetime. If you want
1212
/// to spawn a task that references stack data, use [the `scope()`

0 commit comments

Comments
 (0)