Skip to content

Commit

Permalink
Merge pull request #1112 from bishopcheckmate/doc/clarify-spawns-beha…
Browse files Browse the repository at this point in the history
…vior

doc: be more clear about what the 'spawn' does
  • Loading branch information
cuviper authored Jan 10, 2024
2 parents 7ec70e9 + 2e071c2 commit b80b406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rayon-core/src/spawn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::unwind;
use std::mem;
use std::sync::Arc;

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

0 comments on commit b80b406

Please sign in to comment.