[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-async-81.cs
blob591711c420989f552a7399b9e0ab520e0355bd63
1 using System;
2 using System.Threading.Tasks;
4 class MainClass
6 public static void Main ()
8 new MainClass ().Foo ().Wait ();
11 private async Task<int> Foo()
13 await Task.Delay(1);
14 return 42;
17 private async Task Bar()
19 Console.WriteLine($"Something {await Foo()}");