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

Function finish

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

Source from the content-addressed store, hash-verified

1408 });
1409
1410 const finish = () => {
1411 if (finished) return;
1412 finished = true;
1413 process.off("SIGINT", shutdown);
1414 process.off("SIGTERM", shutdown);
1415 process.stdin.off("end", shutdown);
1416 process.stdin.off("close", shutdown);
1417 resolveExit();
1418 };
1419
1420 const closeBoth = (): Promise<void> => {
1421 if (!closePromise) {

Callers 2

shutdownFunction · 0.70
runMcpHttpBridgeFunction · 0.70

Calls 1

resolveExitFunction · 0.85

Tested by

no test coverage detected