(worker: Worker)
| 36 | * Returns a used worker to the pool so it can process the next image. |
| 37 | */ |
| 38 | const returnWorkerToPool = (worker: Worker): void => { |
| 39 | worker.onmessage = null; |
| 40 | worker.onerror = null; |
| 41 | workerPool.push(worker); |
| 42 | }; |
| 43 | |
| 44 | /** |
| 45 | * The main function to process a single file. |
no outgoing calls
no test coverage detected