setMaxRequestsPerHost method

Future<void> setMaxRequestsPerHost(
  1. int max
)

Sets the maximum number of concurrent HTTP requests per host that the underlying HTTP service may issue.

Lowering this value reduces the chance of hitting per-token rate limits when downloading large amounts of data (for example, offline tile regions), at the cost of slower throughput.

This is a global setting that applies to all Mapbox HTTP requests across the process; calling it on any map instance updates it for all of them.

max must be in the range 1..255.

Implementation

Future<void> setMaxRequestsPerHost(int max) =>
    _impl.setMaxRequestsPerHost(max);