2 using System.Threading.Tasks;
3 using System.Runtime.CompilerServices;
13 class A : INotifyCompletion
21 void INotifyCompletion.OnCompleted (Action a)
31 static async Task<int> Test1 ()
37 public static int Main ()
40 if (!Task.WaitAll (new [] { r }, 1000))
43 Console.WriteLine ("ok");