commit | a219d00068a7c1d78a106c913b4dca65dfa5e805 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Sat May 19 00:11:56 2018 +0200 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Fri May 18 15:11:56 2018 -0700 |
tree | d2823bf623ad3b613a06dad77bd6950c8e7872b5 | |
parent | 22002d6a24268778ab4c12483dc845db238174fc [diff] |
Remove upper case constants (#6) * Remove usage of upper-case constants. * update SDK version * remove stable from Travis config * Update pubspec.yaml
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); })); }