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

Function shutdown

packages/opencode/src/cli/tui/worker.ts:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 )
71 },
72 async shutdown() {
73 await InstanceRuntime.disposeAllInstances()
74 if (server) await server.stop(true)
75 process.off("unhandledRejection", onUnhandledRejection)
76 process.off("uncaughtException", onUncaughtException)
77 },
78}
79
80Rpc.listen(rpc)

Callers

nothing calls this directly

Calls 2

offMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected