Title: Completion Handler for Async Downloads? · Issue #53 · cpp-netlib/cpp-netlib · GitHub
Open Graph Title: Completion Handler for Async Downloads? · Issue #53 · cpp-netlib/cpp-netlib
X Title: Completion Handler for Async Downloads? · Issue #53 · cpp-netlib/cpp-netlib
Description: With the current design of returning the response class as a Future in the client.get, it effectively negates any benefit of the Async abilities, as you still have to sit there polling the future to determine when the transfers are compl...
Open Graph Description: With the current design of returning the response class as a Future in the client.get, it effectively negates any benefit of the Async abilities, as you still have to sit there polling the future t...
X Description: With the current design of returning the response class as a Future in the client.get, it effectively negates any benefit of the Async abilities, as you still have to sit there polling the future t...
Opengraph URL: https://github.com/cpp-netlib/cpp-netlib/issues/53
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Completion Handler for Async Downloads?","articleBody":"With the current design of returning the response class as a Future in the client.get, it effectively negates any benefit of the Async abilities, as you still have to sit there polling the future to determine when the transfers are complete.\n\nIt would be great if you could add something like client.async_wait() to cpp-netlib so that we can get a call back when the download is completed. \n\n(I'm guessing the async_wait could just as easily call wait on the future in a thread (or strand?)) and then call the handler when completed?) \n\nAs it stands right now, it makes client code all that much more complex if you want to implement true async, non-blocking or non-polling code. \n\nI've tried to implement my own service in ASIO to do this, but alas, the ASIO code is above my C++ ability, and cpp-netlib is even more complex :)\n","author":{"url":"https://github.com/Fishwaldo","@type":"Person","name":"Fishwaldo"},"datePublished":"2011-06-11T04:57:39Z","url":"https://github.com/cpp-netlib/cpp-netlib/issues/53"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e48a45b2-ca84-827d-66d5-eece4146ea17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0DC:D2AD4:C65F0:114A51:6AFDD798 |
| html-safe-nonce | 0c30ed045c250e8bf5604fef25fa2b123d6a4df037caa8e5306e37e1b7e36b70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMERDOkQyQUQ0OkM2NUYwOjExNEE1MTo2QUZERDc5OCIsInZpc2l0b3JfaWQiOiI2MjMwMzYwMTQ3ODQzOTk1NTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a6bdce9b2c4f2f17526e4cf0056713a75bc93f810a6394646b0645a6485d2b8f |
| hovercard-subject-tag | issue:1039943 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cpp-netlib/cpp-netlib/53/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac1b54298b9f76af8469f6e964152db7b224c7cd029ca2e5e900b8f12a9ec8e6/cpp-netlib/cpp-netlib/issues/53 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac1b54298b9f76af8469f6e964152db7b224c7cd029ca2e5e900b8f12a9ec8e6/cpp-netlib/cpp-netlib/issues/53 |
| og:image:alt | With the current design of returning the response class as a Future in the client.get, it effectively negates any benefit of the Async abilities, as you still have to sit there polling the future t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Fishwaldo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9918bd4004419458bcd838065ac2a76b76ebd11705d73909fff5ab99e996fa23 |
| turbo-cache-control | no-preview |
| go-import | github.com/cpp-netlib/cpp-netlib git https://github.com/cpp-netlib/cpp-netlib.git |
| octolytics-dimension-user_id | 192422 |
| octolytics-dimension-user_login | cpp-netlib |
| octolytics-dimension-repository_id | 494068 |
| octolytics-dimension-repository_nwo | cpp-netlib/cpp-netlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 469399 |
| octolytics-dimension-repository_parent_nwo | glynos/cpp-netlib |
| octolytics-dimension-repository_network_root_id | 469399 |
| octolytics-dimension-repository_network_root_nwo | glynos/cpp-netlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a231c174493a6a442c0b0544475c918b30128208 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width