← Winnitude! Search  ·  Reader Mode (1466 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 26 LINKS

docs(fetch-abort): add `AbortSignal.timeout()` section by illia-m-b · Pull Request #3989 · javascript-tutorial/en.javascript.info

Repository navigation

docs(fetch-abort): add AbortSignal.timeout() section - #3989


Open
illia-m-b wants to merge 1 commit into javascript-tutorial:master from illia-m-b:patch-2
Open

docs(fetch-abort): add AbortSignal.timeout() section #3989 illia-m-b wants to merge 1 commit into javascript-tutorial:master from illia-m-b:patch-2

Conversation

illia-m-b commented Aug 5, 2026



Copy link Copy Markdown

Closes #3988

Description

Adds a brief subsection introducing AbortSignal.timeout() to the "Fetch: Abort" article.

Changes Made

  • Added the ### AbortSignal.timeout() subsection before the scalability section.
  • Included a code snippet demonstrating its usage with fetch.
  • Added a comment and condition to highlight that this method throws a TimeoutError rather than an AbortError.

Technical Rationale

While the manual setTimeout approach is crucial for understanding how the AbortController triggers signals, AbortSignal.timeout() is the modern standard for handling request timeouts. Including this keeps the tutorial up-to-date with current industry best practices.

docs(fetch-abort): add AbortSignal.timeout() section (javascript-tu... e5c317d
...torial#3988)
javascript-translate-bot added the review needed Review needed, please approve or request changes label Aug 5, 2026 javascript-translate-bot requested a review from a team August 5, 2026 18:28 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

2 participants