Struct scoped_threadpool::Scope[][src]

pub struct Scope<'pool, 'scope> { /* fields omitted */ }

Handle to the scope during which the threadpool is borrowed.

Methods

impl<'pool, 'scope> Scope<'pool, 'scope>
[src]

Execute a job on the threadpool.

The body of the closure will be send to one of the internal threads, and this method itself will not wait for its completion.

Blocks until all currently queued jobs have run to completion.

Trait Implementations

impl<'pool, 'scope> Drop for Scope<'pool, 'scope>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'pool, 'scope> Send for Scope<'pool, 'scope>

impl<'pool, 'scope> !Sync for Scope<'pool, 'scope>