[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-async-27.cs
blob0854340143ce064dccc32a5f3311dcdd53813a81
1 using System;
2 using System.Threading;
3 using System.Threading.Tasks;
5 class MainClass
7 async static Task AsyncTest ()
9 var b = await Task.Factory.StartNew (() => 13);
12 public static void Main (string[] args)
14 for (int i = 0; i < 100; ++i)
15 AsyncTest ().Wait ();