Skip to content

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

@sharwell

Description

@sharwell

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions