rspec/rules/S5034/csharp/rule.adoc

21 lines
778 B
Plaintext
Raw Normal View History

2020-06-30 12:50:28 +02:00
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[]