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

Function getWorkerPool

web/lib/performance/worker-pool.ts:110–115  ·  view source on GitHub ↗
(key: string, factory: () => Worker)

Source from the content-addressed store, hash-verified

108const pools = new Map<string, WorkerPool>();
109
110export function getWorkerPool<T>(key: string, factory: () => Worker): WorkerPool<T> {
111 if (!pools.has(key)) {
112 pools.set(key, new WorkerPool<T>(factory));
113 }
114 return pools.get(key) as WorkerPool<T>;
115}

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected