({ api, taskId, ...options }: WaitUntilAbortedOptions)
| 45 | } |
| 46 | |
| 47 | export const waitUntilAborted = async ({ api, taskId, ...options }: WaitUntilAbortedOptions) => { |
| 48 | const set = new Set<string>() |
| 49 | api.on(RooCodeEventName.TaskAborted, (taskId) => set.add(taskId)) |
| 50 | await waitFor(() => set.has(taskId), options) |
| 51 | } |
| 52 | |
| 53 | type WaitUntilCompletedOptions = WaitForOptions & { |
| 54 | api: RooCodeAPI |