Re: [whatwg/fetch] Deferred fetching (PR #1647)

@mingyc commented on this pull request.



> + <var>deferredRecord</var>.
+</ol>
+</div>
+
+<div algorithm>
+<p>To <dfn>process a deferred fetch</dfn> <var>deferredRecord</var>:
+<ol>
+ <li><p>If <var>deferredRecord</var>'s <a for="deferred fetch record">invoke state</a> is not
+ "<code>pending</code>", then return.
+
+ <li><p>Set <var>deferredRecord</var>'s <a for="deferred fetch record">invoke state</a> to
+ "<code>sent</code>".
+
+ <li><p><a for=/>Fetch</a> <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>.
+
+ <li><p><a>Queue a global task</a> on the <a>deferred fetch task source</a> with

> Queue a global task on the deferred fetch task source with deferredRecord’s request’s client’s global object to run deferredRecord’s notify invoked.

One question not related to bug: why `notify invoked` needs to be put into global task here? Can't it be executed immediately?

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

Message ID: <whatwg/fetch/pull/1647/review/2569502283@github.com>

Received on Thursday, 23 January 2025 10:45:05 UTC