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
tip, @MaximTrushin: use 3 backticks in a row around your multi-line code snippets so github formats them properly. Adding a cs after the opening 3 backticks adds syntax colorization.
Can you include the actual emitted warning? I'm surprised that VSTHRD103 is doing this because I thought that was the job of VSTHRD002.
In any case though, there are several ContinueWith scenarios. This one seems similar to #1123.
VS 2022 v17.4.2:
Steps to Reproduce:
Try to compile the following code:
The assignment to r1 produces the VSTHRD103, but the assignment to r2 doesn't.
Expected Behavior:
The warning must not be produced because the task is always completed when the lambda defined in ContinueWith is called.
Actual Behavior:
VSTHRD103 is produced inside of ContinueWith when passing task.Result as an argument for async function.
The text was updated successfully, but these errors were encountered: