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

Function close

packages/opencode/test/cli/run/runtime.queue.test.ts:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 return Promise.resolve()
48 },
49 close() {
50 if (closed) {
51 return
52 }
53
54 closed = true
55 for (const fn of [...closes]) {
56 fn()
57 }
58 },
59 destroy() {
60 api.close()
61 prompts.clear()

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected