- From: Ming-Ying Chung <notifications@github.com>
- Date: Thu, 08 Jun 2023 21:28:47 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 9 June 2023 04:28:52 UTC
@mingyc commented on this pull request. > @@ -8449,6 +8597,60 @@ with a <var>promise</var>, <var>request</var>, <var>responseObject</var>, and an </div> +<h3 id=fetch-later-method>FetchLater method</h3> + +<pre class=idl> + +dictionary DeferredRequestInit : RequestInit { + DOMHighResTimeStamp backgroundTimeout; +}; + +partial interface mixin WindowOrWorkerGlobalScope { + [NewObject] Promise<Response> fetchLater(RequestInfo input, optional DeferredRequestInit init = {}); But this should not be optional as `fetchLater()` should always return `FetchLaterState` for user to tell if it is `sent` (or `pending`) later? > having the signature be DeferredFetchResult fetchLater(...), where DeferredFetchResult has a { sent: false } that turns to true synchronously at the appropriate moment? I don't quite get the synchronous part, how could `FetchLaterState` update itself? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1647#discussion_r1223830651 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1647/review/1471210851@github.com>
Received on Friday, 9 June 2023 04:28:52 UTC