You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
It 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.
(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?)
As 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.
I'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 :)
Activity
Fishwaldo commentedon Jun 13, 2011
Awesome.
Question, will this be implemented on the 0.9-devel branch, or the 1.0-devel branch. I'd like to track the development it if at all possible.