Should one prefix Async in method names that is going to execute asynchronously. As in MS EF Core all methods that run async have async prefix. But they have sync methods as well without sync prefix.
what are suggestions where some methods are designed to run in parallel as well.
seeking suggestions.
I assume you mean "suffix", not "prefix".
Microsoft uses the "Async" suffix because they are (often) adding asynchronous versions of methods that have already existed for a long time. So there is not much of a choice but to name them differently than the synchronous versions, so adding "Async" makes sense.
If you are creating new methods yourself, then this is what I do:
In the end, it's up to you. It really makes no functional difference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With