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

Method settleOne

src/extraction/store-writer.ts:133–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 private settleOne(): void {
134 if (this.outstanding > 0) this.outstanding--;
135 if (this.belowWaiters.length === 0) return;
136 const still: typeof this.belowWaiters = [];
137 for (const w of this.belowWaiters) {
138 if (this.outstanding < w.limit) w.resolve();
139 else still.push(w);
140 }
141 this.belowWaiters = still;
142 }
143
144 ready(): Promise<void> {
145 return this.readyPromise;

Callers 1

constructorMethod · 0.95

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected