()
| 12 | private workerPool: workerpool.Pool; |
| 13 | |
| 14 | constructor() { |
| 15 | this.workerPool = workerpool.pool( |
| 16 | workerCodeFilePath("llamaTokenizerWorkerPool.mjs"), |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | async encode(text: string): Promise<number[]> { |
| 21 | return this.workerPool.exec("encode", [text]); |
nothing calls this directly
no test coverage detected