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

VSTHRD004 fires for SwitchToMainThreadAsync().NoThrowAwaitable() #1232

Closed
sharwell opened this issue Sep 13, 2023 · 0 comments · Fixed by #1243
Closed

VSTHRD004 fires for SwitchToMainThreadAsync().NoThrowAwaitable() #1232

sharwell opened this issue Sep 13, 2023 · 0 comments · Fixed by #1243
Assignees

Comments

@sharwell
Copy link
Member

Bug description

VSTHRD004 doesn't recognize the NoThrowAwaitable extension added in #1194.

Repro steps

await jtf.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable();

Expected behavior

No warning reported

Actual behavior

VSTHRD004 reported

  • Version used: 17.7.30
  • Application (if applicable): Visual Studio

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants