wait_any
wait_anyWait until the first task among 1–20 IDs reaches a terminal or needs-user stop, then return its snapshot and all task statuses. Validates all IDs before waiting.
Instructions
等待一组任务中首个到达停点(终态或 needs_user)的任务;返回该任务快照与全部任务当前状态。taskIds 1..20 个,开始前校验全部存在,缺一即报错。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskIds | Yes | ||
| timeoutMs | No |