Skip to content

VSTHRD103 and VSTHRD104 are fired after checking task to be completed #680

Closed

Description

@NN---

Bug description

if (task.IsCompletedSuccessfully)
{
 var x = task.Result;
}

if (task.IsCompletedSuccessfully)
{
  f(task.Result);
}

The task.Result is known and will not block.

Repro steps

Code to reproduce the behavior.

Expected behavior

No warning here.

Actual behavior

Warning VSTHRD103, VSTHRD104

  • Version used: 16.7.56

Activity

  1. changed the title [-]VSTHRD103 is fired after checking task to be completed[/-] [+]VSTHRD103 and VSTHRD104 are fired after checking task to be completed[/+] on Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions