A long-lived queue over runBatch: add items any time (before, during, or after a run), pause/resume/cancel through the queue's own controller, and drain() to await everything added so far. Results accumulate in add order across waves.
drain()
Readonly
Total items settled so far (across all waves).
Items accepted but not yet settled (queued + in the active wave).
Resolves with every result so far once the queue is empty and idle.
A long-lived queue over runBatch: add items any time (before, during, or after a run), pause/resume/cancel through the queue's own controller, and
drain()to await everything added so far. Results accumulate in add order across waves.