Re: [whatwg/fetch] Make response body streams readable byte streams (#1246)

@domenic commented on this pull request.



> @@ -5356,8 +5359,8 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
          <li><p>If <var>bytes</var> is failure, then <a lt=terminated for=fetch>terminate</a> the
          ongoing fetch.
 
-         <li><p><a for=ReadableStream>Enqueue</a> a {{Uint8Array}} wrapping an {{ArrayBuffer}}
-         containing <var>bytes</var> into <var>stream</var>.
+         <li><p><a for=ReadableStream>Enqueue bytes</a> into <var>stream</var> given
+         <var>bytes</var>.

Re-reading this section it feels like most of the section needs to take place in a task. (I.e., everything dealing with _stream_.) Just the reading of the bytes from the network needs to be done in parallel.

-- 
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/fetch/pull/1246#discussion_r668158713

Received on Monday, 12 July 2021 18:25:52 UTC