- From: Nathan Chase <notifications@github.com>
- Date: Wed, 27 Jul 2022 05:42:54 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 27 July 2022 12:43:05 UTC
> However, the scenario where the author needs their own AbortController and wants a timeout is more complex, e.g.: > > ``` > const controller = AbortController(); > fetch(url, { signal: AbortSignal.any(controller.signal, AbortSignal.timeout(8000)) }); > ``` This would also potentially be useful if you wanted an increase in timeout on subsequent request retries. Example: Request 1 - timeout 500 - retry Request 2 - timeout 1000 - retry Request 3 - timeout 2000 - retry ... -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/711#issuecomment-1196678481 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/711/1196678481@github.com>
Received on Wednesday, 27 July 2022 12:43:05 UTC