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

Function finish

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

Source from the content-addressed store, hash-verified

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

Callers 2

shutdownFunction · 0.70
runMcpHttpBridgeFunction · 0.70

Calls 1

resolveExitFunction · 0.85

Tested by

no test coverage detected