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

Wait for async operation to complete before disposing workspace #47993

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

sharwell
Copy link
Member

No description provided.

@sharwell sharwell requested a review from a team as a code owner September 23, 2020 22:07
@CyrusNajmabadi
Copy link
Member

not actually certain how this impacts things. if this has a change in behavior, we should likely disseminate this info so people don't use the previous form in new PRs.

@sharwell
Copy link
Member Author

@CyrusNajmabadi Here's the analyzer request for this well-known bug scenario: dotnet/roslyn-analyzers#3071

Copy link
Contributor

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

The new using statement makes this way less obvious :(

@sharwell
Copy link
Member Author

/cc @AArnott @mavasani for the analyzer request

@CyrusNajmabadi
Copy link
Member

oh boy. yeah, that's bad. there was a discussion at some point about really pushing people to always await, just to avoid these scenarios. given that we hit this ourselves, i'm now much more inclined to accept such a rule.

@AArnott
Copy link
Contributor

AArnott commented Sep 24, 2020

I've been bit by this bug a few times too. I even call it out in our existing analyzer proposal. microsoft/vs-threading#518

@sharwell sharwell merged commit badcda6 into dotnet:master Sep 24, 2020
@ghost ghost added this to the Next milestone Sep 24, 2020
@sharwell sharwell deleted the async-wait branch September 24, 2020 03:31
@Cosifne Cosifne modified the milestones: Next, 16.9.P1 Oct 12, 2020
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.

5 participants