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

Function finish

apps/cli/scripts/smoke-packed-apps.ts:39–43  ·  view source on GitHub ↗
(result: number | Error)

Source from the content-addressed store, hash-verified

37 let stdout = "";
38 let stderr = "";
39 const finish = (result: number | Error): void => {
40 clearTimeout(timer);
41 if (result instanceof Error) rejectReady(result);
42 else resolveReady(result);
43 };
44 void proc.exited.then((code) => {
45 finish(new Error(`packed binary exited before ready with code ${code}: ${stderr}`));
46 });

Callers 1

waitForReadyPortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected