* @description Get current pool statistics. * @returns {PoolStats | null} Pool statistics.
()
| 138 | * @returns {PoolStats | null} Pool statistics. |
| 139 | */ |
| 140 | getPoolStats(): PoolStats | null { |
| 141 | if (!this.pool) return null; |
| 142 | |
| 143 | return { |
| 144 | utilization: this.pool.utilization, |
| 145 | completed: this.pool.completed, |
| 146 | waiting: this.pool.queueSize, |
| 147 | threads: this.pool.threads.length, |
| 148 | }; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * @description Terminates the worker pool and unloads the TLS library. |
nothing calls this directly
no outgoing calls
no test coverage detected