MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / shutdown

Function shutdown

src/index.ts:1760–1768  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

1758 };
1759
1760 const shutdown = (code: number) => {
1761 if (shuttingDown) {
1762 return;
1763 }
1764 shuttingDown = true;
1765 clearIdleTimer();
1766 stopAllWatchers();
1767 process.exit(code);
1768 };
1769
1770 const scheduleIdleShutdown = () => {
1771 clearIdleTimer();

Callers 3

scheduleIdleShutdownFunction · 0.85
mainFunction · 0.85
startHttpFunction · 0.85

Calls 2

clearIdleTimerFunction · 0.85
stopAllWatchersFunction · 0.85

Tested by

no test coverage detected