Expand description
Unbounded scoped parallelism: enables running jobs that can discover and enqueue more work
Structs§
- Scope
- Handle passed to the
runclosure ofscope_unbounded, used to enqueue additional items into the same scope.
Functions§
- scope_
unbounded - Runs
runoverinitialand everything it transitively spawns, returning once every item has been processed. No results are collected; jobs communicate through state captured inrun. Usescope_unbounded_withto accumulate a value instead. Items must be'static(they sit in a queue drained by other threads); therunclosure may borrow'envdata. - scope_
unbounded_ with scope_unbounded, plus a per-drainer accumulator folded into a single return value.