Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async client requests #29

Closed
weili-jiang opened this issue Dec 10, 2018 · 3 comments
Closed

Async client requests #29

weili-jiang opened this issue Dec 10, 2018 · 3 comments

Comments

@weili-jiang
Copy link

weili-jiang commented Dec 10, 2018

It appears that the underlying IO library is asynchronous, and the server implementation does indeed expose an asynchronous handler interface.

It would be nice if the client side could also be made to have an asynchronous interface rather than having to do a blocking read.

@Covertness
Copy link
Owner

Can you tell me what would you do with the async client request ? I think the blocking request is enough for most clients

@weili-jiang
Copy link
Author

It would be to free up the main thread to perform other asynchronous IO. I realise that this can also be done externally by wrapping it with something like a futures pool (or simply a worker thread pool)...

@Covertness
Copy link
Owner

#88

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

Successfully merging a pull request may close this issue.

2 participants