Skip to content

Asynchronous methods should have an Async suffix #13

@Aaronmsv

Description

@Aaronmsv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions