Skip to content

doc: clarify AbortSignal abort listener guidance#62288

Open
nthbotast wants to merge 1 commit intonodejs:mainfrom
nthbotast:docs/abortsignal-once-42259
Open

doc: clarify AbortSignal abort listener guidance#62288
nthbotast wants to merge 1 commit intonodejs:mainfrom
nthbotast:docs/abortsignal-once-42259

Conversation

@nthbotast
Copy link

@nthbotast nthbotast commented Mar 16, 2026

Summary

  • clarify that AbortSignal listener guidance applies to EventTarget listeners (not EventEmitter APIs)
  • recommend using { once: true } or manual listener removal
  • explicitly mention removing listeners that are no longer needed when abort never occurs

Fixes: #42259

Testing

  • git diff --check

Signed-off-by: Nathanael BOT <nathanaelbot@minidenathanael.home>
@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Mar 16, 2026
@MikeMcC399
Copy link
Contributor

See also bot comment in #62274 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AbortSignal abort advice maybe needs clarification

3 participants