MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / disposeHost

Function disposeHost

apps/cli/src/commands/cli/run.ts:401–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399 }
400
401 const disposeHost = async () => {
402 if (hostDisposed) {
403 return
404 }
405
406 hostDisposed = true
407 jsonEmitter?.detach()
408 await host.dispose()
409 }
410
411 const onSigint = () => {
412 void shutdown("SIGINT", 130)

Callers 2

shutdownFunction · 0.85
runFunction · 0.85

Calls 2

detachMethod · 0.80
disposeMethod · 0.65

Tested by

no test coverage detected