cancelAll method
void
cancelAll()
inherited
Cancel all futures waiting for this semaphore to be available by throwing a SemaphoreAcquireFailureException to them.
Implementation
void cancelAll() {
while (_waiters.isNotEmpty) {
var waiter = _waiters.removeFirst();
waiter.completeError(SemaphoreAcquireFailureException());
}
}