commit | e7111b9afe4ee0cc5170651aed89da62fefcfddb | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Tue Dec 08 20:15:34 2020 |
committer | GitHub <noreply@github.com> | Tue Dec 08 20:15:34 2020 |
tree | 6170946390f9c0713183ce260641b8aef5f24a9f | |
parent | a4c38db4b02c60bfac35c4cd19241066d88cca1c [diff] |
Delete .test_config
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); })); }