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

Make the semantics of Stream more reasonable #221

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

daniel-abramov
Copy link
Member

Closes #200.

@daniel-abramov daniel-abramov requested a review from jxs March 22, 2022 17:04
src/lib.rs Outdated Show resolved Hide resolved

// The connection has been closed or the critical error has occurred.
// We have already returned the error to the user, the `Stream` is unusable,
// so we assume that the stream has been "fused".
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably also want to implement futures::stream::FusedStream then

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, great suggestion! Thanks. Done.

@daniel-abramov daniel-abramov merged commit 0d37c5c into master Mar 23, 2022
gregates pushed a commit to gregates/tokio-tungstenite that referenced this pull request Feb 24, 2024
…gger-0.9.0

Update env_logger requirement from 0.8.1 to 0.9.0
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.

Semantics of stream read yielding None and Some(Err)?
2 participants