async Task SomeFunc()
{
//some synchronous operations
var task = SomeAsyncTask();
// some more synchrounous operations that depends on the execution of the function above
await task;
}
async Task SomeAsyncTask()
{
// some synchronous operations that SomeFunc depends on
await Task.Delay(1000); //stuff we dont care about
// stuff we are fine with executing sometime later
}
async Task SomeFunc()
{
//some synchronous operations
var task = SomeAsyncTask();
// some more synchrounous operations that depends on the execution of the function above
await task;
}
async Task SomeAsyncTask()
{
// some synchronous operations that SomeFunc depends on
await Task.Delay(1000); //stuff we dont care about
// stuff we are fine with executing sometime later
}