-// 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);
throw new ApplicationException ("3");
return l;
- });
+ }).ConfigureAwait (false);
var r = f ("a");
mre_l.Set ();
await Task.Factory.StartNew (() => {
if (!mre_l.WaitOne (3000))
throw new ApplicationException ("3");
- });
+ }).ConfigureAwait (false);
var rr = ff ();
mre_l.Set ();
if (!mre_l.WaitOne (3000))
throw new ApplicationException ("4");
mre.Set ();
- }, CancellationToken.None);
+ }, CancellationToken.None).ConfigureAwait (false);
a ();
mre_l.Set ();