Skip to main content

Module scope_unbounded

Module scope_unbounded 

Source
Expand description

Unbounded scoped parallelism: enables running jobs that can discover and enqueue more work

Structs§

Scope
Handle passed to the run closure of scope_unbounded, used to enqueue additional items into the same scope.

Functions§

scope_unbounded
Runs run over initial and everything it transitively spawns, returning once every item has been processed. No results are collected; jobs communicate through state captured in run. Use scope_unbounded_with to accumulate a value instead. Items must be 'static (they sit in a queue drained by other threads); the run closure may borrow 'env data.
scope_unbounded_with
scope_unbounded, plus a per-drainer accumulator folded into a single return value.