using System.Threading.Tasks;
public async Task MyAsyncMethod(Func<Task> interimcall)
await interimcall().ConfigureAwait(true);
Console.WriteLine($"call1 running on thread {Environment.CurrentManagedThreadId}");
Console.WriteLine($"call2 running on thread {Environment.CurrentManagedThreadId}");
public static async Task Main()
Example example = new Example();
await example.MyAsyncMethod(async () =>