Re: [whatwg/streams] Add piping helpers for other specs (#1113)

@domenic commented on this pull request.



> @@ -6563,6 +6550,59 @@ Streams</cite> is an example of this technique, with its `sender.createEncodedSt
 Despite such endpoint pairs obeying the `readable`/`writable` property contract, it never makes
 sense to pass them to {{ReadableStream/pipeThrough()}}.
 
+<h3 id="other-specs-piping">Piping</h3>
+
+<div algorithm="ReadableStream pipe to">
+ The result of a {{ReadableStream}} |readable| <dfn export for="ReadableStream" lt="pipe|pipe
+ to|piped to|piping to">piped to</dfn>  to a {{WritableStream}} |writable|, given an optional
+ boolean <dfn export for="ReadableStream/pipe to"><var>preventClose</var></dfn> (default false), an

Good catch. I should probably let people use either; it'll just make the source more verbose.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1113#discussion_r607327758

Received on Monday, 5 April 2021 20:55:02 UTC