2 using System.Threading.Tasks;
3 using System.Threading;
7 static async Task<int> TestNested_1 ()
10 await Task.Factory.StartNew (() => { Thread.Sleep (10); return 5; }).ConfigureAwait (false),
11 await Task.Factory.StartNew (() => -3).ConfigureAwait (false),
12 await Task.Factory.StartNew (() => 6).ConfigureAwait (false));
15 static int Call (int arg1, int arg2, int arg3)
29 public static int Main ()
31 var t1 = TestNested_1 ();
32 if (!Task.WaitAll (new[] { t1 }, 1000))
38 Console.WriteLine ("ok");