hasRequestCapacity property

bool get hasRequestCapacity

Whether a request can be accepted now: a free handler slot or queue room.

Implementation

bool get hasRequestCapacity =>
    !_canceled &&
    !_paused &&
    hasHandler &&
    (_inFlight < handlerConcurrency ||
        _requestQueue.length < requestQueueCapacity);