Skip to content

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

Closed
crowlKats wants to merge 3 commits into
denoland:mainfrom
crowlKats:buffer-await
Closed

crowlKats wants to merge 3 commits into
denoland:mainfrom
crowlKats:buffer-await

Conversation

@crowlKats

@crowlKats crowlKats commented Dec 18, 2023 •

Copy link
Copy Markdown
Member

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

crowlKats commented Dec 18, 2023 •

Copy link
Copy Markdown
Member Author

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

bavoco commented Jan 15, 2024

Copy link
Copy Markdown

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

@iuioiua

iuioiua commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

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