MCPcopy Create free account
hub / github.com/DemonMartin/tlsClient / getPoolStats

Method getPoolStats

src/utils/client.ts:140–149  ·  view source on GitHub ↗

* @description Get current pool statistics. * @returns {PoolStats | null} Pool statistics.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected