I have a following async method which does not have any await calls.
public async Task<bool> AddCust(Customer cust)
{
// doing some synchronous operations
return true;
}
Following method calls the above method and await for the result.
public async Task<bool> ParentMethod(Customer cust)
{
var result = await AddCust(cust);
if(!result)
// some logic
return true;
}
Here the caller awaits on the AddCust method (which does not have any await calls)
Now, question is if I keep the above code as it is would it be any negative impact on performance?
public async Task<bool> AddCust(Customer cust)
{
// doing some synchronous operations
return true;
}
Following method calls the above method and await for the result.
public async Task<bool> ParentMethod(Customer cust)
{
var result = await AddCust(cust);
if(!result)
// some logic
return true;
}
Here the caller awaits on the AddCust method (which does not have any await calls)
Now, question is if I keep the above code as it is would it be any negative impact on performance?