Semaphore constructor

Semaphore([
  1. int maxCount = 1
])

Implementation

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