MCPcopy
hub / github.com/anomalyco/opencode / getWorkerPool

Function getWorkerPool

packages/session-ui/src/pierre/worker.ts:35–45  ·  view source on GitHub ↗
(style: WorkerPoolStyle | undefined)

Source from the content-addressed store, hash-verified

33let split: WorkerPoolManager | undefined
34
35export function getWorkerPool(style: WorkerPoolStyle | undefined): WorkerPoolManager | undefined {
36 if (typeof window === "undefined") return
37
38 if (style === "split") {
39 if (!split) split = createPool("word-alt")
40 return split
41 }
42
43 if (!unified) unified = createPool("none")
44 return unified
45}
46
47export function getWorkerPools() {
48 return {

Callers 3

TextViewerFunction · 0.90
DiffViewerFunction · 0.90
getWorkerPoolsFunction · 0.85

Calls 1

createPoolFunction · 0.85

Tested by

no test coverage detected