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

Function finish

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

Source from the content-addressed store, hash-verified

1353 });
1354
1355 const finish = () => {
1356 if (finished) return;
1357 finished = true;
1358 process.off("SIGINT", shutdown);
1359 process.off("SIGTERM", shutdown);
1360 process.stdin.off("end", shutdown);
1361 process.stdin.off("close", shutdown);
1362 resolveExit();
1363 };
1364
1365 const closeBoth = (): Promise<void> => {
1366 if (!closePromise) {

Callers 2

shutdownFunction · 0.70
runMcpHttpBridgeFunction · 0.70

Calls 1

resolveExitFunction · 0.85

Tested by

no test coverage detected