
Update rule content and descriptions to LaYC format. https://sonarsource.github.io/rspec/#/rspec/S4586 ## 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)
12 lines
726 B
Plaintext
12 lines
726 B
Plaintext
== Resources
|
|
|
|
=== Documentation
|
|
|
|
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.completedtask[`Task.CompletedTask` Property]
|
|
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.fromresult[`Task.FromResult<TResult>(TResult)` Method]
|
|
|
|
=== Articles & blog posts
|
|
|
|
* StackOverflow - Answer by Stephen Cleary for https://stackoverflow.com/a/45350108[Is it better to return an empty task or null?]
|
|
* StackOverflow - Answer by Stephen Cleary for https://stackoverflow.com/a/27551261[Best way to handle null task inside async method?]
|
|
* C# Language Design Proposal - https://github.com/dotnet/csharplang/issues/35[Champion "Null-conditional await"] |