All rules
CA1843Performance Enabled by default: As suggestion

Do not use 'WaitAll' with a single task

Do not use 'WaitAll' with a single task

Microsoft docs

Description

Using WaitAll with a single task might result in performance loss. Await or return the task instead.

Cause

System.Threading.Tasks.Task.WaitAll is called with a single task.

How to fix violations

You should await or return the task instead.

When to suppress

Do not suppress a warning from this rule.

Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0