async
method should have at least a single await
able CS-W1047A method with async
modifier indicates that it involves asynchronous work. Not having any await
expressions inside the method makes the async
modifier redundant and the method proceeds in a synchronous manner. Consider either adding appropriate await
expressions or dropping the async
modifier.
public async void Foo()
{
// Method has no await expressions
}
public void Foo()
{
// ...
}