.NET & C# ยท C#
When should you use async and await in C#?
Use async APIs end-to-end for I/O. Return Task or Task<T>, propagate CancellationToken, and await the operation instead of blocking.
Use async APIs end-to-end for I/O. Return Task or Task<T>, propagate CancellationToken, and await the operation instead of blocking.