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

Enforce ConfigureAwait(false) on the whole library #148

Conversation

marcin-krystianc
Copy link
Contributor

@marcin-krystianc marcin-krystianc commented May 30, 2022

Follows up the user report from #146. By adding Roslyn analyser to the Consul project we prevent from similar issues happening ever again.

PS:
I've found a nice write up about the ConfigureAwait issue https://devblogs.microsoft.com/dotnet/configureawait-faq/ (TLDR: in the library code should use ConfigureAwait(false) to avoid some deadlock scenarios)

Copy link
Member

@jgiannuzzi jgiannuzzi left a comment

Choose a reason for hiding this comment

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

Excellent, thanks @marcin-krystianc!

@marcin-krystianc marcin-krystianc merged commit 269b5bd into G-Research:master May 31, 2022
@marcin-krystianc marcin-krystianc deleted the dev-marcink-20220530-configureawait branch May 31, 2022 09:05
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.

3 participants