Skip to content

Added the receive_nowait() method to all streams #487

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

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

agronholm
Copy link
Owner

No description provided.

@agronholm agronholm marked this pull request as draft October 25, 2022 19:36
@agronholm
Copy link
Owner Author

I just realized that this PR requires backwards incompatible changes, as it introduces a new mandatory stream method that must raise either WouldBlock or EndOfStream depending on the state of the stream.

@agronholm agronholm added this to the 5.0 milestone Dec 12, 2023
@agronholm
Copy link
Owner Author

I've made the changes compatible with v4.x by only emitting a warning when receive_nowait() hasn't been implemented.

@agronholm agronholm removed this from the 5.0 milestone Apr 18, 2025
@agronholm
Copy link
Owner Author

All that this still needs is added test coverage. The TLSStream implementation looks particularly tricky.

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.

1 participant