-
Notifications
You must be signed in to change notification settings - Fork 3
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 Option #16
Comments
An async interface does make sense. I haven't spent much time thinking about this, but replacing the use of |
I already started the rewrite. I have a particular problem i haven't gotten to debug yet: |
As for the |
I found the issue: due to #[cfg(not(feature = "async"))]
fn recv<T: protobuf::Message + Default>(
rpc: &mut TcpStream,
) -> Result<T, RpcError> {
CodedInputStream::new(rpc)
.read_message()
.map_err(Into::into)
} A |
Fixed that issue, next issue is as you predicted: Streams don't work. I'll look into that when I got time again |
False alarm, it was an issue with my rocket lol. Streams work. I'll try to rewrite the condvar with notify and then I think it's ready for use |
Resolved with #17 |
Having the option to use this libraries functions in an async context would be great. To that end I forked the repo and am working on implementing it behind a feature flag. if you got some advice, I'm open to hear it
The text was updated successfully, but these errors were encountered: