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

Function finish

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

Source from the content-addressed store, hash-verified

1423 });
1424
1425 const finish = () => {
1426 if (finished) return;
1427 finished = true;
1428 process.off("SIGINT", shutdown);
1429 process.off("SIGTERM", shutdown);
1430 process.stdin.off("end", shutdown);
1431 process.stdin.off("close", shutdown);
1432 resolveExit();
1433 };
1434
1435 const closeBoth = (): Promise<void> => {
1436 if (!closePromise) {

Callers 2

shutdownFunction · 0.70
runMcpHttpBridgeFunction · 0.70

Calls 1

resolveExitFunction · 0.85

Tested by

no test coverage detected