You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ia Task.WhenAll prior to the problematic member access (e.g. Result/Wait), and that the task variable has not been used in-between in a way that would invalidate this check.
Bug description
When you have multiple tasks and you await them with
await Task.WhenAll(t1, t2)
,which problem can be if you call after that to
t1.Result
I checked with sharplab and .Result version is smaller.
Repro steps
Expected behavior
VSTHRD002 warning shouldn't be raised.
Actual behavior
VSTHRD002 warning is raised
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: