Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
shutdown
Function · 0.85
run
Function · 0.85
Calls
2
detach
Method · 0.80
dispose
Method · 0.65
Tested by
no test coverage detected