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

@mingyc commented on this pull request.



> +<p>The <dfn attribute for=FetchLaterResult><code>sent</code></dfn> getter steps are to return
+<a>this</a>'s <a for=FetchLaterResult>deferred record</a>'s <a for="deferred fetch record">sent</a>.
+</div>
+
+<div algorithm="dom-fetch-later">
+<p>The
+<dfn id=dom-global-fetch-later method for=WindowOrWorkerGlobalScope><code>fetchLater(<var>input</var>, <var>init</var>)</code></dfn>
+method steps are:
+
+<ol>
+ <li><p>Let <var>requestObject</var> be the result of invoking the initial value of {{Request}} as
+ constructor with <var>input</var> and <var>init</var> as arguments. If that threw an exception,
+ <a for=/>reject</a> <var>promise</var> with that exception and return <var>promise</var>.
+
+ <li><p>If <var>requestObject</var>'s <a for=Request>signal</a> is <a for=AbortSignal>aborted</a>,
+ then <a for=/>reject</a> <var>promise</var> with <var>requestObject</var>'s

> the caller (document etc) aborting the request programatically.

Thanks I think the new description is clearer now.

> If requestObject’s signal is aborted , then throw signal’s  abort reason .


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

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

Received on Thursday, 29 June 2023 08:23:09 UTC