commit | 22002d6a24268778ab4c12483dc845db238174fc | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Tue Sep 19 01:11:03 2017 |
committer | GitHub <noreply@github.com> | Tue Sep 19 01:11:03 2017 |
tree | 87ed4e2cb2d88c77cfdd569b88dd2560c5163a27 | |
parent | 40a8f35e7fc4961c13fc95034e8bb8caf733bc06 [diff] |
Remove -dev.infinity in SDK upper constraint
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); })); }