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

feat(streams): buffer pull only once data has been written #3982

Closed
wants to merge 3 commits into from

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Dec 18, 2023

Currently, when a Buffer is read from, and no data was written, it will instantly close. This PR adds logic so that the buffer needs to be written to first before starting to read.

Required for #1985

@crowlKats crowlKats requested a review from kt3k as a code owner December 18, 2023 10:53
@crowlKats crowlKats marked this pull request as draft December 18, 2023 10:53
@crowlKats crowlKats changed the title buffer pull only once data has been written feat(streams): buffer pull only once data has been written Dec 18, 2023
@crowlKats
Copy link
Member Author

crowlKats commented Dec 18, 2023

i think this might not work; if later on you write after reading and the buf is empty while reading, it will just close.

@bavoco
Copy link

bavoco commented Jan 15, 2024

Would adding a #closedBool help? Similar to #startedBool, but set when the writable stream is closed.

@iuioiua
Copy link
Contributor

iuioiua commented Aug 6, 2024

Closing because #1985 is now closed in favor of #4548.

@iuioiua iuioiua closed this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants