MCPcopy
hub / github.com/anomalyco/opencode / onClose

Function onClose

packages/opencode/test/cli/run/runtime.test.ts:98–108  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

96 onPrompt: () => () => {},
97 onQueuedRemove: () => () => {},
98 onClose(fn) {
99 if (closed) {
100 fn()
101 return () => {}
102 }
103
104 closes.add(fn)
105 return () => {
106 closes.delete(fn)
107 }
108 },
109 event() {},
110 append() {},
111 idle() {

Callers

nothing calls this directly

Calls 3

addMethod · 0.65
fnFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected