Skip to content

fix: remove async on [kClose] and [kDestroy], only return Promise#4450

Merged
Uzlopak merged 1 commit intomainfrom
kClose-kDestroy-sync-Promise
Aug 23, 2025
Merged

fix: remove async on [kClose] and [kDestroy], only return Promise#4450
Uzlopak merged 1 commit intomainfrom
kClose-kDestroy-sync-Promise

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Aug 23, 2025

We anyway expect that kClose and kDestroy wont error, when we call them in DispatcherBase. Also we dont want them in the stacktrace.

Also reduces the created promises for a fetch by 2

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Uzlopak Uzlopak merged commit 2442989 into main Aug 23, 2025
36 checks passed
@Uzlopak Uzlopak deleted the kClose-kDestroy-sync-Promise branch August 23, 2025 18:32
@github-actions github-actions bot mentioned this pull request Sep 9, 2025
slagiewka pushed a commit to slagiewka/undici that referenced this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants