File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,20 @@ impl<'scope> ScopeFifo<'scope> {
473
473
}
474
474
}
475
475
476
- /// TODO: like `Scope::spawn()` but FIFO
476
+ /// Spawns a job into the fork-join scope `self`. This job will
477
+ /// execute sometime before the fork-join scope completes. The
478
+ /// job is specified as a closure, and this closure receives its
479
+ /// own reference to the scope `self` as argument. This can be
480
+ /// used to inject new jobs into `self`.
481
+ ///
482
+ /// # See also
483
+ ///
484
+ /// This method is akin to [`Scope::spawn()`], but with a FIFO
485
+ /// priority. The [`scope_fifo` function] has more details about
486
+ /// this distinction.
487
+ ///
488
+ /// [`Scope::spawn()`]: struct.Scope.html#method.spawn
489
+ /// [`scope_fifo` function]: fn.scope.html
477
490
pub fn spawn_fifo < BODY > ( & self , body : BODY )
478
491
where
479
492
BODY : FnOnce ( & ScopeFifo < ' scope > ) + Send + ' scope ,
You can’t perform that action at this time.
0 commit comments