- From: josephrocca <notifications@github.com>
- Date: Mon, 18 Sep 2023 23:14:13 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 19 September 2023 06:14:17 UTC
> Actually just saw Anne's comment My primary concern at this point is the ergonomics (readability and writeability) of this: ```js fetch(url, { signal: AbortSignal.timeout(8000) }); ``` Semantically convoluted on a skim, and just significantly longer than it needs to be for 99% of cases. We need to add this on basically **every** request. So I'm of the very strong opinion that this should not be closed until we have something ergonomically ~equivalent to: ```js fetch(url, { timeout: 8000 }); ``` And probably handled in a similar way to Go, as mentioned by ianstormtaylor in an [earlier comment](https://github.com/whatwg/fetch/issues/179#issuecomment-541744174) in this thread. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/179#issuecomment-1724887597 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/179/1724887597@github.com>
Received on Tuesday, 19 September 2023 06:14:17 UTC