This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Property | Value |
---|---|
Rule ID | CA1842 |
Title | Do not use 'WhenAll' with a single task |
Category | Performance |
Fix is breaking or non-breaking | Non-breaking |
Enabled by default in .NET 9 | As suggestion |
WhenAll is called with a single task.
UsingWhenAll
with a single task may result in performance loss.
You should await or return the task instead.
Do not suppress a warning from this rule.
Was this page helpful?
Was this page helpful?