2 using System.Threading.Tasks;
11 Console.WriteLine (count);
17 Console.WriteLine (count);
22 Test2 (false).Wait ();
23 Console.WriteLine (count);
29 Console.WriteLine (count);
36 static async Task Test (bool throwTest)
40 await Task.Delay (10);
43 throw new ApplicationException ();
46 } catch (ApplicationException) {
48 await Task.Delay (10);
52 await Task.Delay (10);
57 static async Task Test2 (bool throwTest)
61 await Task.Delay (10);
64 throw new ApplicationException ();
67 } catch (ApplicationException) {
69 await Task.Delay (10);