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

Method shareScans

src/resolution/resolver-pool.ts:312–314  ·  view source on GitHub ↗

Give every worker what the main thread read from the whole project, ahead of any reference it is sent.

(scans: ProjectScans)

Source from the content-addressed store, hash-verified

310
311 /** Give every worker what the main thread read from the whole project, ahead of any reference it is sent. */
312 shareScans(scans: ProjectScans): void {
313 for (const pw of this.workers) pw.worker.postMessage({ type: 'scans', scans });
314 }
315
316 /** Number of workers — how many passes the synthesis fan-out keeps in flight. */
317 get size(): number {

Callers 1

createPoolMethod · 0.80

Calls 1

postMessageMethod · 0.65

Tested by

no test coverage detected