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

Support readable byte streams #6

Merged
merged 35 commits into from
Jun 22, 2021
Merged

Support readable byte streams #6

merged 35 commits into from
Jun 22, 2021

Conversation

MattiasBuelens
Copy link
Owner

@MattiasBuelens MattiasBuelens commented Jun 21, 2021

  • Add ReadableStream::(try_)get_byob_reader to acquire a BYOB reader.
  • Add ReadableStream::from_async_read to turn an AsyncRead into a readable byte stream.
  • Add ReadableStream::(try_)into_async_read to turn a readable byte stream into an AsyncRead.

@MattiasBuelens MattiasBuelens added the enhancement New feature or request label Jun 21, 2021
@MattiasBuelens MattiasBuelens self-assigned this Jun 21, 2021
When the stream is canceled, pending reads are now immediately resolved
without waiting for the buffer to be returned to the caller.

whatwg/streams@8a7d92b
@MattiasBuelens MattiasBuelens merged commit 6a5cc65 into master Jun 22, 2021
@MattiasBuelens MattiasBuelens deleted the byte-streams branch June 22, 2021 19:21
@MattiasBuelens MattiasBuelens added this to the v0.2.0 milestone Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant