MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / finish

Function finish

apps/cli/src/main.ts:1378–1386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1376 });
1377
1378 const finish = () => {
1379 if (finished) return;
1380 finished = true;
1381 process.off("SIGINT", shutdown);
1382 process.off("SIGTERM", shutdown);
1383 process.stdin.off("end", shutdown);
1384 process.stdin.off("close", shutdown);
1385 resolveExit();
1386 };
1387
1388 const closeBoth = (): Promise<void> => {
1389 if (!closePromise) {

Callers 2

shutdownFunction · 0.70
runMcpHttpBridgeFunction · 0.70

Calls 1

resolveExitFunction · 0.85

Tested by

no test coverage detected