addInflightRequest method

void addInflightRequest(
  1. HttpRequest request
)

Add request to this bucket's in-flight requests.

In flight requests are requests that have been sent by the client but have not yet received a response from the API. These requests count towards the remaining count to avoid sending too many requests at once.

Implementation

void addInflightRequest(HttpRequest request) => _inflightRequests.add(request);