Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hang in AsyncLazy<T>.DisposeValueAsync #1340

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Jul 19, 2024

This method was failing to create a JoinableTask dependency link such that a value factory that was already in progress and required the main thread would be able to get it from the DisposeValueAsync caller.

Fixes devdiv-2169193
For the record, this fixes a bug that existed since the introduction of this method in 17.8. So while this PR fixes 17.12, I based the fixing commit in the 17.8 version so we can merge the fix into any older release if necessary.

This method was failing to create a JoinableTask dependency link such that a value factory that was already in progress and required the main thread would be able to get it from the `DisposeValueAsync` caller.
@AArnott AArnott added this to the v17.12 milestone Jul 19, 2024
Copy link
Member

@lifengl lifengl left a comment

Choose a reason for hiding this comment

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

looks good to me

@AArnott AArnott merged commit 98acf4e into microsoft:main Jul 19, 2024
5 checks passed
@AArnott AArnott deleted the libtemplateUpdate branch July 19, 2024 21:37
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