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

Function finish

apps/local/src/mcp.ts:340–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338 const waitForExit = () =>
339 new Promise<void>((resolve) => {
340 const finish = () => {
341 process.off("SIGINT", finish);
342 process.off("SIGTERM", finish);
343 process.stdin.off("end", finish);
344 process.stdin.off("close", finish);
345 resolve();
346 };
347 process.once("SIGINT", finish);
348 process.once("SIGTERM", finish);
349 process.stdin.once("end", finish);

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected