MCPcopy Index your code
hub / github.com/anomalyco/opencode / cleanup

Function cleanup

packages/desktop/src/main/server.ts:121–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 fail(new Error(`Sidecar exited before ready with code ${code}`))
120 }
121 const cleanup = () => {
122 clearTimeout(timeout)
123 child.off("message", onMessage)
124 child.off("exit", onExit)
125 }
126
127 child.on("message", onMessage)
128 child.on("exit", onExit)

Callers 3

failFunction · 0.70
onMessageFunction · 0.70
memoFunction · 0.50

Calls 1

offMethod · 0.80

Tested by

no test coverage detected