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: Add WritableStreams (and enable ReadableStreams piping) #4980

Merged
merged 2 commits into from
Apr 30, 2020

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Apr 29, 2020

This PR adds WritableStreams and enables the ReadableStream.prototype.pipeThrough and ReadableStream.prototype.pipeTo which required WritableStreams.

(Does a minimal implementation of #4918 to support not swallowing internal errors)

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

Rubber stamp LGTM - thanks for working on this @kitsonk

I can't help but wonder why the streams spec is so much more complex than Deno's Reader/Writer/Buffer concepts. It seems to be this wild unconstrained orgy of algorithms and objects - to accomplish ideas that were seemingly worked out 30 years ago with unix pipes. I can only conclude that I'm missing some core idea - Deno can generically stream data (say from a TCP socket to a file) with about 200 lines of javascript for all the code involved....

@ry ry merged commit 81c7533 into denoland:master Apr 30, 2020
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.

None yet

2 participants