* Lightweight web worker pool. Keeps a fixed number of workers alive * and queues tasks when all workers are busy.
| 4 | */ |
| 5 | |
| 6 | interface WorkerTask<T> { |
| 7 | payload: unknown; |
| 8 | resolve: (value: T) => void; |
| 9 | reject: (reason: unknown) => void; |
| 10 | transferables?: Transferable[]; |
| 11 | } |
| 12 | |
| 13 | interface WorkerSlot { |
| 14 | worker: Worker; |
nothing calls this directly
no outgoing calls
no test coverage detected