Async method naming
See original GitHub issueThere’s a bit of inconsistency in the project with its use of asynchronous naming conventions:
Sometimes a method follows the Microsoft naming guidelines, including an -Async suffix (e.g. OpenAsync
) and other times the suffix is not present (e.g. IHtmlFormElement.Submit()
).
What is the preferred coding style and should there be a cleanup to make the project conform?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
c# - Does the use of the "Async" suffix in a method name ...
The Task-based Asynchronous Pattern (TAP) dictates that methods should always return a Task<T> (or Task ) and be named with an Async suffix; ......
Read more >Why do people add Async to method names in new code?
The Async suffix isn't just there for the sake of convention. It's a big red flag that says, "I probably need an await...
Read more >Don't add Async suffix when making method async #47592
The 'Async' method name suffix is a concise and clear indicator that a method is async and needs to be awaited. This has...
Read more >No Async Suffix • NServiceBus - Particular Developer Portal
The name of an async method, by convention, ends with an Async suffix. The decision not to adopt the Async suffix in NServiceBus...
Read more >C#: Here's how to avoid forgetting to suffix the name of your ...
Best practice: The name of an asynchronous method should end with “Async”. A good practice that we could unfortunately sometimes forget.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Implemented, see PR #301.
Clearly we are discussing different things.