-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Cannot select on DuplexStream #13788
Comments
/cc me |
This will all end up being thrown out as part of redesigning I/O and concurrency in the standard libraries. There's no reason to only support selection on channels rather than selection on both data structures and directly on IO operations / signals / timers. |
DuplexStream is gone, partially for this reason, if I recall. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Dec 15, 2024
This addresses rust-lang#13099 for the manual_async_fn test. changelog: [manual_async_fn]: Updated manual_async_fn to use multipart_suggestions where appropriate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears impossible to select over a DuplexStream channel. Select's handle method only accepts Receivers, and there is no way to access the Receiver channel in a DuplexStream either.
I'd be happy to put in a PR, but I'm unsure the best course of action. One of these needs to be done:
And then there is a question how the user interacts with Select. Should there be:
handle_duplex
?)The text was updated successfully, but these errors were encountered: