maxConcurrency property
int
get
maxConcurrency
Returns the maximum allowed concurrent file handles.
Implementation
int get maxConcurrency => _maxConcurrency;
set
maxConcurrency
(int value)
Updates the maximum concurrency limit, closing excess idle handles if reduced.
Implementation
set maxConcurrency(int value) {
_maxConcurrency = value < 1 ? 1 : value;
_shrinkPoolIfNeeded();
}