MCPcopy Create free account
hub / github.com/code-pushup/cli / exitHandler

Function exitHandler

packages/utils/src/lib/exit-process.ts:107–112  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

105 );
106
107 const exitHandler = (code: number) => {
108 if (closedReason) {
109 return;
110 }
111 close(code, { kind: 'exit' });
112 };
113
114 process.on('uncaughtException', uncaughtExceptionHandler);
115 process.on('unhandledRejection', unhandledRejectionHandler);

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected