Clone this repo:
  1. e7111b9 Delete .test_config by Kevin Moore · 3 years, 5 months ago master
  2. a4c38db Delete .travis.yml by Kevin Moore · 3 years, 5 months ago
  3. a3aa637 Delete codereview.settings by Kevin Moore · 4 years, 9 months ago
  4. 8e95308 Support the latest pkg:http, prepare for release (#9) by Kevin Moore · 6 years ago 1.0.4
  5. a0370ae chore: set max SDK version to <3.0.0 (#8) by Patrice Chalin · 6 years ago 1.0.3

http_throttle is middleware for the http package that throttles the number of concurrent requests that an HTTP client can make.

// This client allows 32 concurrent requests.
final client = new ThrottleClient(32);

Future<List<String>> readAllUrls(Iterable<Uri> urls) {
  return Future.wait(urls.map((url) {
    // You can safely call as many client methods as you want concurrently, and
    // ThrottleClient will ensure that only 32 underlying HTTP requests will be
    // open at once.
    return client.read(url);
  }));
}