Struct rayon_core::Scope
[−]
[src]
pub struct Scope<'scope> { /* fields omitted */ }Represents a fork-join scope which can be used to spawn any number of tasks. See scope() for more information.
Methods
impl<'scope> Scope<'scope>[src]
fn spawn<BODY>(&self, body: BODY) where
BODY: FnOnce(&Scope<'scope>) + Send + 'scope, [src]
BODY: FnOnce(&Scope<'scope>) + Send + '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.