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

Method fail

src/resolution/resolver-pool.ts:213–223  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

211 }
212
213 private fail(err: Error): void {
214 if (!this.failed) this.failed = err;
215 for (const [, waiter] of this.waiters) waiter.reject(this.failed);
216 this.waiters.clear();
217 for (const [, waiter] of this.synthWaiters) waiter.reject(this.failed);
218 this.synthWaiters.clear();
219 // Pending recycles resolve rather than reject: their per-call timeout
220 // owns rejection, and the recycle caller checks this.failed next round.
221 for (const [, done] of this.recycleWaiters) done();
222 this.recycleWaiters.clear();
223 }
224
225 /** Whether this batch is worth fanning out. */
226 static worthParallel(batchLength: number): boolean {

Callers 2

constructorMethod · 0.95
recycleWorkersMethod · 0.95

Calls 2

doneFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected