commit | d1fb225f76184ccb6148b5c3fb0f55ff959a7dda | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Fri May 18 22:12:58 2018 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Sat May 19 00:42:35 2018 |
tree | a0fa3ec1515644a5108098a92b71b6e3c4fc5d17 | |
parent | a219d00068a7c1d78a106c913b4dca65dfa5e805 [diff] |
Update .gitignore
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); })); }