DownloadIsolatePool constructor
DownloadIsolatePool({
- int poolSize = MAX_ISOLATE_POOL_SIZE,
Constructs a DownloadIsolatePool with the specified poolSize
.
Throws an ArgumentError if the pool size is less than or equal to zero.
Implementation
DownloadIsolatePool({int poolSize = MAX_ISOLATE_POOL_SIZE})
: _poolSize = poolSize {
if (_poolSize <= 0) {
throw ArgumentError('Pool size must be greater than 0');
}
_streamController = StreamController.broadcast();
}