(style: WorkerPoolStyle | undefined)
| 33 | let split: WorkerPoolManager | undefined |
| 34 | |
| 35 | export 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 | |
| 47 | export function getWorkerPools() { |
| 48 | return { |
no test coverage detected