Skip to content

Document signal retention behavior of AbortSignal.any() - #45353

Open
1t1sCooL wants to merge 1 commit into
mdn:mainfrom
1t1sCooL:abortsignal-any-retention-note
Open

Document signal retention behavior of AbortSignal.any()#45353
1t1sCooL wants to merge 1 commit into
mdn:mainfrom
1t1sCooL:abortsignal-any-retention-note

Conversation

@1t1sCooL

Copy link
Copy Markdown

Description

Adds a Description section to the AbortSignal.any() reference page documenting that the returned signal stays linked to (and retained by) the input signals until one of them aborts or all become unreachable, with a minimal example of the problematic pattern (repeatedly combining a long-lived signal with short-lived ones) and how to avoid it (abort the short-lived controller when its operation completes).

Motivation

Fixes #44695 — the scope follows the discussion in that issue: focused on AbortSignal.any() only, per the reporter's suggested note and the maintainer's confirmation that the addition is reasonable.

@1t1sCooL
1t1sCooL requested a review from a team as a code owner August 27, 2026 12:52
@1t1sCooL
1t1sCooL requested review from sideshowbarker and removed request for a team August 27, 2026 12:52
@github-actions github-actions Bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Aug 27, 2026
@sideshowbarker
sideshowbarker removed their request for review September 1, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

2 participants