1 // Compiler options: -langversion:future
4 using System
.Threading
.Tasks
;
22 void OnCompleted (System
.Action a
)
32 static async Task
<int> Test1 ()
38 public static int Main ()
41 if (!Task
.WaitAll (new [] { r }
, 1000))
44 Console
.WriteLine ("ok");