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

Method removeWorker

src/extraction/parse-pool.ts:354–359  ·  view source on GitHub ↗
(w: ParsePoolWorker)

Source from the content-addressed store, hash-verified

352 }
353
354 private removeWorker(w: ParsePoolWorker): void {
355 this.workers.delete(w);
356 this.pending.delete(w);
357 this.parseCounts.delete(w);
358 this.idle = this.idle.filter((x) => x !== w);
359 }
360
361 private dispatch(w: ParsePoolWorker, job: ParseJob): void {
362 this.inflight.set(w, job);

Callers 3

onWorkerGoneMethod · 0.95
recycleMethod · 0.95
onHardTimeoutMethod · 0.95

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected