commit | c21cc70776eb99b3b72176ab6ea69972f718b5a8 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Wed Dec 17 16:09:09 2014 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Wed Dec 17 16:09:09 2014 -0800 |
tree | 1279261d0a0b5dff0d019413e54a03b1448ed9e8 | |
parent | f7ece71252df3e9ba683e5a1170eab7c2fe57ae6 [diff] |
Add gitignore, status, and codereview files.
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); })); }