- From: Federico Brigante <notifications@github.com>
- Date: Fri, 29 Dec 2023 22:04:57 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 30 December 2023 06:05:03 UTC
It looks like this is now possible with the new `AbortSignal.any()` API, available in Chrome 116+ (no Firefox/Safari yet) Example: ```js fetch(url, { signal: AbortSignal.any([ userCancelSignal, AbortSignal.timeout(10000), ]), }); ``` - https://chromestatus.com/feature/5202879349522432 - https://bugs.webkit.org/show_bug.cgi?id=256176 -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/905#issuecomment-1872462238 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/905/1872462238@github.com>
Received on Saturday, 30 December 2023 06:05:03 UTC