getStats method

Map<String, int> getStats()

Returns a map with statistics about the pool.

Implementation

Map<String, int> getStats() {
  return {'poolSize': _pool.length, 'maxSize': _maxSize};
}