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

Add receive_nowait() to all receive streams #482

Open
agronholm opened this issue Oct 19, 2022 · 1 comment
Open

Add receive_nowait() to all receive streams #482

agronholm opened this issue Oct 19, 2022 · 1 comment
Labels
design Requires a design decision enhancement New feature or request
Milestone

Comments

@agronholm
Copy link
Owner

Occasionally there is a use case where the code would like to receive all the data it can without waiting. The memory object stream has the receive_nowait() method for this purpose. I figured this could be easily added to socket streams too.

@agronholm agronholm added enhancement New feature or request design Requires a design decision labels Oct 19, 2022
@agronholm agronholm added this to the 4.0 milestone Oct 19, 2022
@agronholm
Copy link
Owner Author

This was inspired by redis's code doing this defensively to ensure that nothing was readable from the stream.

agronholm added a commit that referenced this issue Oct 25, 2022
agronholm added a commit that referenced this issue Oct 25, 2022
@agronholm agronholm modified the milestones: 4.0, 4.1 May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Requires a design decision enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant