What is the reason for the warning?
Simply put, a method asyncthat does not use awaitis almost certainly erroneous. Not always wrong, or that would be a mistake. But almost always wrong, so a warning.
An incredibly common mistake of an asynchronous novice is to assume what it asyncmeans to "make this method asynchronous." This is usually associated with the assumption that “asynchronous” means “running in the background thread,” but sometimes it’s just an assumption of “magic.”
Thus, the warning clearly indicates that the code will work synchronously.
, - async, , .
, async await , (.., , ) , . async, TaskCompletionSource<T> try/catch. ; , .