Re: [whatwg/fetch] WIP: Add a mechanism to fetch to track progress (PR #1843)

@lukewarlow commented on this pull request.



> +
+  <ol>
+   <li><p>Let <var>monitorCallback</var> be <var>init</var>["{{FetchInit/responseMonitor}}"].
+
+   <li><p>Set <var>responseMonitor</var> to the result of <a for=FetchMonitor>creating</a> a
+   {{FetchMonitor}} given <var>relevantRealm</var>.
+
+   <li><p>Let <var>args</var> be « <var>responseMonitor</var> ».
+
+   <li><p>[=invoke|Invoke=] <var>monitorCallback</var> with <var>args</var>
+   and <code>"rethrow"</code>. If this throws an exception, <a for=/>reject</a> <var>p</var> with it
+   and return <var>p</var>.
+  </ol>
+
+ <li>
+  <p>Let <var>rejectMonitors</var>, given <var>error</var>, be these steps:

We probably need to find a way to call this when the response body errors partway through, currently in that scenario the finished promises never settle.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1843#pullrequestreview-6098745609
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1843/review/6098745609@github.com>

Received on Saturday, 28 November 2026 15:34:12 UTC