Re: [whatwg/fetch] Add option to reject the fetch promise automatically after a certain time elapsed (with no API for arbitrary aborts) (#179)

> 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