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

Switch TCP/UDP fns to poll_ -> Poll<...> style #175

Merged
merged 1 commit into from
Mar 4, 2018

Conversation

carllerche
Copy link
Member

Tokio is moving away from using WouldBlock, instead favoring
Async::NotReady.

This patch updates the TCP and UDP types, deprecating any function that
returns WouldBlock and adding a poll_ prefixed equivalent.

Tokio is moving away from using `WouldBlock`, instead favoring
`Async::NotReady`.

This patch updates the TCP and UDP types, deprecating any function that
returns `WouldBlock` and adding a poll_ prefixed equivalent.
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! 👍

Should any tests be updated?

@carllerche
Copy link
Member Author

@olix0r I opted to not update any tests to ensure that backwards compat isn't broken. The old fns are re-implemented in terms of the new fns, so it should (hopefully) test it all.

I would update tests as part of 0.2.

@carllerche carllerche merged commit 9f7a98a into tokio-rs:master Mar 4, 2018
@carllerche carllerche deleted the add-poll-fn-to-udp branch March 7, 2018 05:45
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 this pull request may close these issues.

None yet

2 participants