commit | 747ac6f4e6f7cfe0733164e1d2e24b2dab3bc337 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Thu Jan 15 23:52:54 2015 |
committer | Kevin Moore <kevmoo@google.com> | Thu Jan 15 23:52:54 2015 |
tree | c4b33b0a9dc0f9ccabb39e3364363ab7d4ad5db2 | |
parent | a81f08be942cdd608883c7b67795c12226abc235 [diff] |
added author to pubspec cleanup to codereview.settings and .gitignore R=nweiz@google.com Review URL: https://codereview.chromium.org//814833011
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); })); }