
## Review A dedicated reviewer checked the rule description successfully for: - [ ] logical errors and incorrect information - [ ] information gaps and missing content - [ ] text style and tone - [ ] PR summary and labels follow [the guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
21 lines
778 B
Plaintext
21 lines
778 B
Plaintext
include::../rule.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
Refactor this `ValueTask` usage to await it once or call `AsTask()`.
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
=== on 13 Sep 2019, 16:01:18 Andrei Epure wrote:
|
|
According to https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.valuetask-1?view=netstandard-2.1[the docs] "The use of the ValueTask type is supported starting with C# 7.0, and is not supported by any version of Visual Basic.", thus I am removing VB from this
|
|
|
|
=== on 13 Sep 2019, 16:09:19 Andrei Epure wrote:
|
|
\[~nicolas.harraudeau] - did you have a chance to look at the wording of this rule? I think it can be simplified...
|
|
endif::env-github,rspecator-view[]
|