Module rayon_core::spawn
source · Functions§
- 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 thescope()
function to create a scope. - Fires off a task into the Rayon threadpool 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 thescope_fifo()
function to create a scope. - spawn_
fifo_ 🔒 ⚠in Spawns an asynchronous FIFO job inregistry.
- spawn_
in 🔒 ⚠Spawns an asynchronous job inregistry.
- spawn_
job 🔒 ⚠