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

Function cleanup

packages/opencode/src/control-plane/util.ts:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23
24 const cleanup = () => {
25 clearTimeout(timeout)
26 GlobalBus.off("event", handler)
27 input.signal?.removeEventListener("abort", abort)
28 }
29
30 const timeout = setTimeout(() => {
31 cleanup()

Callers 3

abortFunction · 0.70
handlerFunction · 0.70
waitEventFunction · 0.70

Calls 1

offMethod · 0.80

Tested by

no test coverage detected