Skip to content

VSTHRD002 should not fire in continuations #217

Description

@sharwell

The following code reports VSTHRD002, but it should not:

Task<int> task = default;
task.ContinueWith(t => t.Result); // t is known to be completed at the point of t.Result

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions