I have a method called Load which is being invoked from a synchronous method:
private async Task LoadAsync()
{
await Task.Run(() => // stuff....).ConfigureAwait(false);
}
public void HelloWorld()
{
this.LoadAsync(); // this gives me a suggestion/message, "because this call is not awaited,.... consider using await.
}
I was able to remove the suggestion message by doing this:
this.LoadAsync().ConfigureAWait(false);
Does the ConfigureAwait(false) still work (the Task.Run inside the method will run asychronously) without the await keyword?