Struct rayon_core::Scope
[−]
[src]
pub struct Scope<'scope> { /* fields omitted */ }
Methods
impl<'scope> Scope<'scope>
[src]
fn spawn<BODY>(&self, body: BODY) where BODY: FnOnce(&Scope<'scope>) + 'scope
Spawns a job into the fork-join scope self
. This job will
execute sometime before the fork-join scope completes. The
job is specified as a closure, and this closure receives its
own reference to self
as argument. This can be used to
inject new jobs into self
.