question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Async method naming

See original GitHub issue

There’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:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FlorianRapplcommented, Mar 24, 2016

Implemented, see PR #301.

0reactions
FlorianRapplcommented, Mar 1, 2016

Clearly we are discussing different things.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found