Skip to content

fix: Observe abandoned tasks after WhenAny timeouts - #273

Open
waiwaing wants to merge 1 commit into
cnblogs:mainfrom
waiwaing:observe-unobserved-tasks
Open

fix: Observe abandoned tasks after WhenAny timeouts#273
waiwaing wants to merge 1 commit into
cnblogs:mainfrom
waiwaing:observe-unobserved-tasks

Conversation

@waiwaing

@waiwaing waiwaing commented Jun 25, 2026

Copy link
Copy Markdown

Prevents the finalizer from throwing an UnobservedTaskException during GC by explicitly observing the abandoned task in case it faults, which can occur if the socket is disposed of

@waiwaing waiwaing changed the title fix: Observe abadoned tasks after WhenAny timeouts fix: Observe abandoned tasks after WhenAny timeouts Jun 25, 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.

1 participant