MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

web/lib/performance/worker-pool.ts:24–27  ·  view source on GitHub ↗
(workerFactory: () => Worker, size = navigator.hardwareConcurrency ?? 2)

Source from the content-addressed store, hash-verified

22 private readonly workerFactory: () => Worker;
23
24 constructor(workerFactory: () => Worker, size = navigator.hardwareConcurrency ?? 2) {
25 this.workerFactory = workerFactory;
26 this.size = Math.min(size, 4); // Cap at 4 to avoid too many threads
27 }
28
29 private createSlot(): WorkerSlot {
30 const worker = this.workerFactory();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected