-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Do not poll on the port in recv_timeout
#9195
Comments
tl;dr if we had #6842 this would be a non-issue. |
I'm of the opinion that we shouldn't implement this polling strategy in the libraries at all. Without a short-term fix I don't think that this should be merged at all. Polling is generally agreed upon as the wrong strategy, and I don't think that it's ok to expose these as core synchronization library functions when they will perform differently than you'd expect. |
Closing because #9194 wasn't merged. |
…rcho unused_self: respect avoid-breaking-exported-api ``` changelog: [`unused_self`]: Now respects the `avoid-breaking-exported-api` config option ``` Fixes rust-lang#9195. I mostly copied the implementation from `unnecessary_wraps`, since I don't have much understanding of rustc internals.
Current implementation causes a wakeup every time it checks for new messages, which is very bad for the battery life among other things.
IRC Chat: https://botbot.me/mozilla/rust/msg/6023259/
The text was updated successfully, but these errors were encountered: