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

Method removeWorker

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

Source from the content-addressed store, hash-verified

436 }
437
438 private removeWorker(w: ParsePoolWorker): void {
439 this.workers.delete(w);
440 this.pending.delete(w);
441 this.parseCounts.delete(w);
442 this.idle = this.idle.filter((x) => x !== w);
443 }
444
445 private dispatch(w: ParsePoolWorker, job: ParseJob): void {
446 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