commit | a0370ae7fd11f2b04237ead5c766acb723d9a8b3 | [log] [tgz] |
---|---|---|
author | Patrice Chalin <chalin@users.noreply.github.com> | Mon Jul 16 20:43:07 2018 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Mon Jul 16 20:43:07 2018 |
tree | 591fb09eaf89ee68f2da0e194237a54cb870f30e | |
parent | d12e94521b0e88927cb31fa3a10b068ec45d8809 [diff] |
chore: set max SDK version to <3.0.0 (#8)
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); })); }