MCPcopy Create free account
hub / github.com/cloudflare/computer / waitForExit

Function waitForExit

packages/computerd/src/exec/runner.fuse.test.ts:168–171  ·  view source on GitHub ↗
(proc: ChildProcess)

Source from the content-addressed store, hash-verified

166}
167
168async function waitForExit(proc: ChildProcess): Promise<void> {
169 if (proc.exitCode !== null) return;
170 await new Promise<void>((resolveExit) => proc.once("exit", () => resolveExit()));
171}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected