Semaphore constructor
Semaphore([
- int maxCount = 1
Implementation
Semaphore([this.maxCount = 1]) {
if (maxCount < 1) {
throw new RangeError.value(maxCount, "maxCount");
}
}
Semaphore([this.maxCount = 1]) {
if (maxCount < 1) {
throw new RangeError.value(maxCount, "maxCount");
}
}