createPool method

Pool? createPool()

Creates a new Pool corresponding to this concurrency strategy.

Returns null if isUnbounded.

Implementation

Pool? createPool() {
  _validateLimit();
  if (isUnbounded) return null;
  return Pool(poolSize);
}