okhttp / okhttp3 / Dispatcher / maxRequests

maxRequests

var maxRequests: Int

Set 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

Set 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.