Skip to content

okhttp / okhttp3 / Dispatcher / maxRequests

maxRequests

var maxRequests:Int

The maximum number of requests to execute concurrently. Above this requests queue in memory, waiting for the running calls to complete.

If more than maxRequests requests are in flight when this is invoked, those requests will remain in flight.

Getter

The maximum number of requests to execute concurrently. Above this requests queue in memory, waiting for the running calls to complete.

If more than maxRequests requests are in flight when this is invoked, those requests will remain in flight.