start method

FutureOr<void> start()
inherited

Ensure at least ConcurrencySettings.minWorkers workers are started (defaulting to 1 if ConcurrencySettings.minWorkers is zero).

Implementation

FutureOr<void> start() {
  _stopped = false;
  final needs = _getProvisionNeeds(_queue.isEmpty ? 1 : _queue.length);
  if (needs > 0) {
    return _provisionWorkers(needs);
  }
}