Commit c14007f8 authored by vishwanath.patil's avatar vishwanath.patil

Align client example code

parent a293e5c7
...@@ -49,12 +49,12 @@ int main(int argc, char *argv[]) { ...@@ -49,12 +49,12 @@ int main(int argc, char *argv[]) {
std::cout << "Response body = " << body << std::endl; std::cout << "Response body = " << body << std::endl;
}, Async::IgnoreException); }, Async::IgnoreException);
responses.push_back(std::move(resp)); responses.push_back(std::move(resp));
auto sync = Async::whenAll(responses.begin(), responses.end()); auto sync = Async::whenAll(responses.begin(), responses.end());
Async::Barrier<std::vector<Http::Response>> barrier(sync); Async::Barrier<std::vector<Http::Response>> barrier(sync);
if(barrier.wait_for(std::chrono::seconds(5)) == std::cv_status::timeout) { if(barrier.wait_for(std::chrono::seconds(5)) == std::cv_status::timeout) {
++failedRequests; ++failedRequests;
} }
} }
auto end = std::chrono::system_clock::now(); auto end = std::chrono::system_clock::now();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment