Wave scheduler for bounded parallel task execution.
Executes tasks in waves respecting concurrency limits, dependency order,
output budgets, and token budgets. Each wave waits for all tasks to
complete before the next wave launches.
Build waves from tasks respecting dependency ordering.
Tasks with no unresolved dependencies go in the earliest possible wave.
Within each wave, tasks are further split into sub-waves of maxConcurrency size.
Wave scheduler for bounded parallel task execution.
Executes tasks in waves respecting concurrency limits, dependency order, output budgets, and token budgets. Each wave waits for all tasks to complete before the next wave launches.
Example