Member Junction
    Preparing search index...

    Optional controls for runBounded.

    interface RunBoundedOptions {
        shouldStop?: () => boolean;
    }
    Index

    Properties

    Properties

    shouldStop?: () => boolean

    A predicate consulted by each worker BEFORE it pulls the next task. When it returns true, workers stop dispatching new tasks (already-in-flight tasks still finish). Used to stop the wave the instant a budget bound trips so no extra iteration is ever dispatched (plan §8.4 — no overrun). Tasks that are never dispatched leave their result slot undefined.