-
Notifications
You must be signed in to change notification settings - Fork 193
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
implement AsRawFd #306
implement AsRawFd #306
Conversation
05a291a
to
2bf3b96
Compare
@yihuang You might also be interested contributing to https://github.com/wusyong/async-zmq |
That library don't look optimal for me:
I also used this PR of rust-zmq in the example of tokio-async-io. If you are worried about the correctness of the async example, maybe you can merge the harmless Of course, the approach to async in this example is ad-hoc, but people can build on top of this concept into something more complete. |
Can you separate the |
Done, removed the example from this PR, add made another one. |
thanks! I'm not crazy about the unwraps here, but there's not much we can do if |
Another possibility is to return -1 for the fd. Maybe there is already a precedence for this? |
Fix #305