async
should have their names suffixed with Async
CS-R1073The consensus in .NET is to have names of methods dealing with async
hronous operations suffixed with Async
. One such example is Stream.ReadAsync
from System.IO
. Doing so improves readability and provides crucial information at a glance.
public virtual System.Threading.Tasks.ValueTask<int> Read (Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.ValueTask<int> ReadAsync (Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default);