I would like to know if the following code will wait for the async method to complete before executing the main thread or will just continue the main thread if condition and consider the method return as false.
public async Task<bool> SomeMethod
{
if(await AsyncMethod(param))
{
//Do something
}
}
...
And the async method is defined as:
public async Task<bool> AsyncMethod(SomeClass param)
{
//Do something
}