()
| 36 | private workerPool: workerpool.Pool; |
| 37 | |
| 38 | constructor() { |
| 39 | this.workerPool = workerpool.pool( |
| 40 | workerCodeFilePath("tiktokenWorkerPool.mjs"), |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | async encode(text: string): Promise<number[]> { |
| 45 | return this.workerPool.exec("encode", [text]); |
nothing calls this directly
no test coverage detected