MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / waitForWritesToFinish

Function waitForWritesToFinish

out/cli.cjs:13141–13144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13139 }
13140 setPromiseIsHandledToTrue(pipeLoop());
13141 function waitForWritesToFinish() {
13142 const oldCurrentWrite = currentWrite;
13143 return PerformPromiseThen(currentWrite, () => oldCurrentWrite !== currentWrite ? waitForWritesToFinish() : void 0);
13144 }
13145 function isOrBecomesErrored(stream4, promise, action) {
13146 if (stream4._state === "errored") {
13147 action(stream4._storedError);

Callers 2

shutdownWithActionFunction · 0.85
shutdownFunction · 0.85

Calls 1

PerformPromiseThenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…