dgraph.net icon indicating copy to clipboard operation
dgraph.net copied to clipboard

Asynchronous methods should have an Async suffix

Open Aaronmsv opened this issue 4 years ago • 1 comments

It's a convention in .NET to have the Async suffix on asynchronous methods. One example is the DgraphClient.Alter method. When following the convention it should be DgraphClient.AlterAsync.

For more information: https://docs.microsoft.com/en-us/dotnet/csharp/async#important-info-and-advice

You should add "Async" as the suffix of every async method name you write.

This is the convention used in .NET to more easily differentiate synchronous and asynchronous methods. Certain methods that aren't explicitly called by your code (such as event handlers or web controller methods) don't necessarily apply. Because they are not explicitly called by your code, being explicit about their naming isn't as important.

Aaronmsv avatar Jun 24 '20 15:06 Aaronmsv

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

github-actions[bot] avatar Jul 11 '24 01:07 github-actions[bot]