We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ThreadPool::spawn_fifo
1 parent e431b4b commit 552fc11Copy full SHA for 552fc11
rayon-core/src/thread_pool/mod.rs
@@ -270,7 +270,14 @@ impl ThreadPool {
270
unsafe { spawn::spawn_in(op, &self.registry) }
271
}
272
273
- /// TODO: like `spawn`, but FIFO
+ /// Spawns an asynchronous task in this thread-pool. This task will
274
+ /// run in the implicit, global scope, which means that it may outlast
275
+ /// the current stack frame -- therefore, it cannot capture any references
276
+ /// onto the stack (you will likely need a `move` closure).
277
+ ///
278
+ /// See also: [the `spawn_fifo()` function defined on scopes][spawn_fifo].
279
280
+ /// [spawn_fifo]: struct.ScopeFifo.html#method.spawn_fifo
281
pub fn spawn_fifo<OP>(&self, op: OP)
282
where
283
OP: FnOnce() + Send + 'static,
0 commit comments