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

Method drain

src/db/wal-valve.ts:196–201  ·  view source on GitHub ↗

Await any in-flight checkpoint and writer pause.

()

Source from the content-addressed store, hash-verified

194
195 /** Await any in-flight checkpoint and writer pause. */
196 async drain(): Promise<void> {
197 while (this.pause || this.inflight) {
198 if (this.pause) await this.pause;
199 if (this.inflight) await this.inflight;
200 }
201 }
202
203 /**
204 * Phase-boundary fold: backfill the ENTIRE WAL now (off-thread, awaited).

Callers 1

foldNowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected