-
Notifications
You must be signed in to change notification settings - Fork 148
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
VSTHRD010 warning despite call to JoinableTaskFactory.SwitchToMainThreadAsync #1295
Comments
kfam98
changed the title
VSTHRD010 warning despite call to JoinableTaskFactory.SwitchToMainnThreadAsync
VSTHRD010 warning despite call to JoinableTaskFactory.SwitchToMainThreadAsync
Mar 29, 2024
I agree this shouldn't be happening. Your sample code is about as simple as it gets for what should work however. In fact it's equivalent to this test we have: Lines 738 to 742 in 3803a78
So I can only imagine there is something else about your repro that is important to understand why it's broken. Any ideas what that might be? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
I pushed the threading version for a certain project. Now, the warning VSTHRD010 is coming up for certain parts of code despite the call to
JoinableTaskFactory.SwitchToMainnThreadAsync
.Repro steps
Expected behavior
No warning should appear.
Actual behavior
Warning appeared, and we have to suppress the warning. Despite switching to main thread.
The text was updated successfully, but these errors were encountered: