- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 06 Feb 2024 22:38:58 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 February 2024 06:39:05 UTC
### What is the issue with the Fetch Standard? Some time ago we refactored fetch to be callable from everywhere, including the main thread, with callbacks to signal the result. In this world, fetch [calls "handle fetch"](https://fetch.spec.whatwg.org/#concept-http-fetch) without going in parallel. It's assumed that "handle fetch" synchronously returns a response. [Handle fetch](https://w3c.github.io/ServiceWorker/#on-fetch-request-algorithm) does synchronously return a response. But it does so with various "Wait" calls, e.g. > Wait for task to have executed or for handleFetchFailed to be true. In general it's very unclear to me exactly how Handle Fetch is anticipating being called, actually... sometimes it explicitly goes in parallel itself. Sometimes it manipulates main-thread objects like promises. Sometimes it queues tasks, as if it was already in parallel. But, probably it's best to assume it's supposed to be executing in parallel. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1734 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/1734@github.com>
Received on Wednesday, 7 February 2024 06:39:05 UTC