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

Function complete

apps/local/src/db/data-dir-ownership.test.ts:94–104  ·  view source on GitHub ↗
(timedOut: boolean)

Source from the content-addressed store, hash-verified

92): Promise<ChildCloseResult> =>
93 new Promise((resolve) => {
94 const complete = (timedOut: boolean) => {
95 clearTimeout(timer);
96 output.child.off("close", onClose);
97 resolve({
98 timedOut,
99 exitCode: output.child.exitCode,
100 signalCode: output.child.signalCode,
101 stdout: output.stdout.trim(),
102 stderr: output.stderr.trim(),
103 });
104 };
105 const onClose = () => complete(false);
106 const timer = setTimeout(() => complete(true), timeoutMs);
107

Callers 2

onCloseFunction · 0.70
waitForChildCloseFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected