MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / shutdownRuntimeHost

Function shutdownRuntimeHost

desktop/runtime-host/worker.ts:260–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258let isShuttingDown = false
259
260async function shutdownRuntimeHost() {
261 if (isShuttingDown) return
262 isShuttingDown = true
263 try {
264 await disposeAllRuntimeHosts()
265 } finally {
266 process.exit(0)
267 }
268}
269
270process.once('disconnect', () => {
271 void shutdownRuntimeHost()

Callers 1

worker.tsFile · 0.85

Calls 1

disposeAllRuntimeHostsFunction · 0.90

Tested by

no test coverage detected