- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 05 Apr 2021 14:03:03 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/streams/pull/1113/review/628161272@github.com>
@domenic commented on this pull request. > + {{Promise}} that fulfills when the pipe completes, or rejects with an exception if it fails. + + 1. Assert: ! [$IsReadableStreamLocked$](|readable|) is false. + 1. Assert: ! [$IsWritableStreamLocked$](|writable|) is false. + 1. Let |signalArg| be |signal| if |signal| was given, or undefined otherwise. + 1. Return ! [$ReadableStreamPipeTo$](|readable|, |writable|, |preventClose|, |preventAbort|, + |preventCancel|, |signalArg|). + + <p class="note">If one doesn't care about the promise returned, referencing this concept can be a + bit awkward. The best we can suggest is "[=ReadableStream/pipe=] <var ignore>readable</var> to <var + ignore>writable</var>".</p> +</div> + +<div algorithm="ReadableStream pipe through"> + The result of a {{ReadableStream}} |readable| <dfn export for="ReadableStream" lt="pipe + through|piping through">piped through</dfn> a {{TransformStream}} |transform|, given an optional The latter would require doing JavaScript-observable Get()s, which introduces the possibility of sync exceptions. I think we should leave it as just `TransformStream` for now unless some spec comes along that needs the generic concept. -- 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_r607332187
Received on Monday, 5 April 2021 21:03:16 UTC