-// Compiler options: -langversion:future
-
using System;
using System.Threading;
using System.Threading.Tasks;
await Task.Factory.StartNew (() => {
if (!mre_l.WaitOne (3000))
throw new ApplicationException ("1");
- });
+ }).ConfigureAwait (false);
if (mre_l.WaitOne ())
mre.Set ();
await Task.Factory.StartNew (() => {
if (!mre_l.WaitOne (3000))
throw new ApplicationException ("2");
- });
+ }).ConfigureAwait (false);
if (mre_l.WaitOne ())
mre.Set ();
throw new ApplicationException ("3");
return l;
- });
+ }).ConfigureAwait (false);
return t;
};
throw new ApplicationException ("4");
return l;
- });
+ }).ConfigureAwait (false);
return t;
};