IsolatePool constructor
IsolatePool({
- int? workers,
Implementation
IsolatePool({int? workers})
: _workerCount = workers ?? Platform.numberOfProcessors.clamp(1, 8) {
for (var i = 0; i < _workerCount; i++) {
_spawn();
}
}