I've come across some code that is marked as "async" but doesn't make any asynchronous calls. A dumbed-down version:
public async Task<int> NotReallyAsynchronous() {
// Some code... var someInt = ...;
return someInt;
}
I know this can lead to a chain of awaits to appear throughout the codebase, but other than that, what are the dangers of it?
It results in a compiler warning, and I intend to change the code so it no longer has the async modifier, but I am interested in knowing if there are other reasons that it is problematic.