Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

HttpClient::request() #224

Open
Type1J opened this issue Apr 24, 2018 · 1 comment
Open

HttpClient::request() #224

Type1J opened this issue Apr 24, 2018 · 1 comment

Comments

@Type1J
Copy link

Type1J commented Apr 24, 2018

It would be very useful if the HttpClient::request() function would return an awaitable type for use in coroutines. (See the "Naked Coroutines" talk by Gor Nishanov.)

@eidheim
Copy link
Owner

eidheim commented Apr 29, 2018

You can create your own wrappers using for instance https://github.com/Naios/continuabl. I have not tried this library myself, but I found this example to be interesting: https://github.com/Naios/continuable/blob/master/examples/example-asio/example-asio.cpp.

In general though, due to the complexity of this subject, I would wait for the standards committee to finish their work on coroutines.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants