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

Function done

src/mcp/proxy.ts:512–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510 return new Promise((resolve) => {
511 let resolved = false;
512 const done = () => { if (!resolved) { resolved = true; resolve(); } };
513
514 process.stdin.on('data', (chunk) => {
515 try { socket.write(chunk); } catch { /* socket may have errored — close path catches it */ }

Callers 3

pipeUntilCloseFunction · 0.70
teardownFunction · 0.70
failMethod · 0.50

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected