MCPcopy Create free account
hub / github.com/TanStack/ai / shutdown

Function shutdown

examples/ts-react-native-chat/scripts/dev.mjs:319–326  ·  view source on GitHub ↗
(exitCode = 0)

Source from the content-addressed store, hash-verified

317 let shuttingDown = false
318
319 function shutdown(exitCode = 0) {
320 if (shuttingDown) return
321 shuttingDown = true
322 for (const child of children) {
323 killProcess(child)
324 }
325 process.exitCode = exitCode
326 }
327
328 for (const child of children) {
329 child.on('error', (error) => {

Callers 1

startDevFunction · 0.85

Calls 1

killProcessFunction · 0.85

Tested by

no test coverage detected