MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / waitUntilAborted

Function waitUntilAborted

apps/vscode-e2e/src/suite/utils.ts:47–51  ·  view source on GitHub ↗
({ api, taskId, ...options }: WaitUntilAbortedOptions)

Source from the content-addressed store, hash-verified

45}
46
47export 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
53type WaitUntilCompletedOptions = WaitForOptions & {
54 api: RooCodeAPI

Callers 2

runXAIToolProbeFunction · 0.90
runDeepSeekToolProbeFunction · 0.90

Calls 3

waitForFunction · 0.85
onMethod · 0.65
hasMethod · 0.65

Tested by 2

runXAIToolProbeFunction · 0.72
runDeepSeekToolProbeFunction · 0.72