Skip to content

Default ConfigureAwait in extension method and VSTHRD003 warning #1064

Answered by AArnott
alexreadmail asked this question in Q&A
Discussion options

You must be logged in to vote

If VSTHRD003 is showing up in your TaskExtensions class itself, yes, you can suppress it.
What I would be more concerned about is whether code that uses await task.DefaultAwait() would not produce VSTHRD003 when it should. You might want to test that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexreadmail
Comment options

Answer selected by alexreadmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants