Expand description
Dividing work so that the answer does not depend on how many threads ran it.
This crate owns the vocabulary and, behind the off-by-default rayon
feature, the executor. It does not parallelise its own operations: nothing
here runs a kernel, and nothing above the type layer decides a worker count.
That decision belongs to the caller (NFR-113).
Structs§
- Block
Plan - A division of
0..countinto fixed-size blocks. - Worker
Panicked - A worker thread ended without returning its blocks.
Enums§
- Block
Execution Error - A bounded block execution stopped before completing its output.
- Reduction
Policy - Whether a parallel reduction must combine partials in block order.
Constants§
- DEFAULT_
BLOCK_ ITEMS - Items per block when a caller expresses no preference.
Functions§
- map_
blocks_ in - Runs a block plan on the pool and worker budget owned by an execution graph.
- try_
for_ each_ block_ in - Computes bounded windows and consumes results in canonical block order.