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

Function cleanup

apps/cli/src/commands/cli/list.ts:153–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 let settled = false
152
153 const cleanup = () => {
154 clearTimeout(timeoutId)
155 host.off("extensionWebviewMessage", onMessage)
156 offError()
157 }
158
159 const finish = (fn: () => void) => {
160 if (settled) return

Callers 14

finishFunction · 0.70
useGlobalInputFunction · 0.50
initFunction · 0.50
useExtensionHostFunction · 0.50
promptWithTimeoutMethod · 0.50
onDataMethod · 0.50
completeHandlerMethod · 0.50
errorHandlerMethod · 0.50
waitForTaskCompletionMethod · 0.50
removeClineFromStackMethod · 0.50
onTokensChangedMethod · 0.50

Calls 1

offMethod · 0.65

Tested by

no test coverage detected