MCPcopy Create free account
hub / github.com/apache/maka / rejectOnce

Function rejectOnce

packages/runtime/src/shell-exec.ts:257–262  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

255 }
256
257 function rejectOnce(error: Error): void {
258 if (settled) return;
259 settled = true;
260 cleanup();
261 reject(error);
262 }
263
264 function resolveOnce(outcome: ChildProcessLifecycleResult<'stdout' | 'stderr'>): void {
265 if (settled) return;

Callers

nothing calls this directly

Calls 1

cleanupFunction · 0.70

Tested by

no test coverage detected