Import
Props
| Prop | Type | Default | Description |
|---|---|---|---|
id | string | auto-generated | Stable id for the queue group. |
maxConcurrency | number | 1 | Max simultaneous child tasks. |
skipIf | boolean | false | Skip the entire subtree. |
children | ReactNode | — | Child tasks/control-flow nodes. |
Examples
Single-lane (default)
Custom concurrency
Nesting with Parallel
<MergeQueue> constrains its children to 1-at-a-time. The outer <Parallel> runs unrelated siblings concurrently up to its own limit.
Internals
Renders as<smithers:merge-queue> (or null when skipped). Each child task receives parallelGroupId and parallelMaxConcurrency in its descriptor. The engine enforces the concurrency cap per group.
Notes
- Defaults to single-lane (
maxConcurrency = 1). - Innermost group determines the effective cap for its descendants.
- Tasks outside the queue are unaffected by its limit.