Pool<T extends Pooled> constructor

Pool<T extends Pooled>({
  1. required T factory(),
  2. int minAvailable = 1,
  3. double growthFactor = 0.15,
  4. double shrinkFactor = 0.33,
  5. bool batchedGrowth = true,
})

Implementation

Pool({
  required this.factory,
  this.minAvailable = 1,
  this.growthFactor = 0.15,
  this.shrinkFactor = 0.33,
  this.batchedGrowth = true,
})  : _available = new HashSet.identity(),
      _inUse = new HashSet.identity();