We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Compile the following for .NET 6, where CTR.DisposeAsync is defined, to see the false warning.
Task Foo() { return Task.CompletedTask; void CompletionHandler(CancellationTokenRegistration registration) { #pragma warning disable VSTHRD103 // Use DisposeAsync instead. registration.Dispose(); #pragma warning restore VSTHRD103 // Use DisposeAsync instead. } }
The text was updated successfully, but these errors were encountered:
Recognize local functions in VSTHRD103
73ee84e
This prevents false positives in synchronous local functions that appear within async methods. Fixes microsoft#1003
AArnott
Successfully merging a pull request may close this issue.
Compile the following for .NET 6, where CTR.DisposeAsync is defined, to see the false warning.
The text was updated successfully, but these errors were encountered: