MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / waitForExit

Function waitForExit

__tests__/daemon-registry.test.ts:34–38  ·  view source on GitHub ↗
(child: ReturnType<typeof spawn>)

Source from the content-addressed store, hash-verified

32}
33
34function waitForExit(child: ReturnType<typeof spawn>): Promise<void> {
35 return child.exitCode !== null
36 ? Promise.resolve()
37 : new Promise((resolve) => child.once('exit', () => resolve()));
38}
39
40/**
41 * A live process standing in for a daemon. Its command line reads like a

Callers 1

Calls 2

resolveFunction · 0.70
resolveMethod · 0.65

Tested by

no test coverage detected