Simply, are these two functions functionally exactly the same?
async Task SomeFuncAsync()
{
await Task.Delay(1000);
}
async Task Foo1()
{
await BarAsync();
return SomeFuncAsync();
}
async Task Foo2()
{
await BarAsync();
await SomeFuncAsync();
}
If not, what is the difference?
(Note this is slightly different than this and this because I'm not considering removing async
from my function signature. If this is a duplicate, please link and I'll delete.)