[corlib] New lazily initialized X509Certificate.
[mono.git] / mcs / tests / test-async-07.cs
index 55d7b08c89b51de6e0e87f0c97078858b31daee5..60c4ca000ef082502c339703ec1568d75cb37c09 100644 (file)
@@ -1,12 +1,10 @@
-// Compiler options: -langversion:future
-
 using System;
 using System.Threading;
 using System.Threading.Tasks;
 
 class Program
 {
-       static int Main ()
+       public static int Main ()
        {
                var mre_l = new ManualResetEvent (false);
                var mre = new ManualResetEvent (false);
@@ -17,7 +15,7 @@ class Program
                                        throw new ApplicationException ("3");
 
                                return l;
-                       });
+                       }).ConfigureAwait (false);
 
                var r = f ("a");
                mre_l.Set ();
@@ -33,7 +31,7 @@ class Program
                        await Task.Factory.StartNew (() => {
                                if (!mre_l.WaitOne (3000))
                                        throw new ApplicationException ("3");
-                       });
+                       }).ConfigureAwait (false);
 
                var rr = ff ();
                mre_l.Set ();
@@ -52,7 +50,7 @@ class Program
                                if (!mre_l.WaitOne (3000))
                                        throw new ApplicationException ("4");
                                mre.Set ();
-                       }, CancellationToken.None);
+                       }, CancellationToken.None).ConfigureAwait (false);
                
                a ();
                mre_l.Set ();