2 using System
.Threading
.Tasks
;
3 using System
.Threading
;
8 public Struct (object member
)
13 public async Task
<bool> AsyncMethod ()
15 bool b
= (string)m_member
== "1";
16 await Task
.Factory
.StartNew (() => -3);
17 b
&= (string)m_member
== "1";
24 public static int Main ()
26 Struct s
= new Struct ("1");
27 var t
= s
.AsyncMethod ();
28 if (!Task
.WaitAll (new[] { t }
, 2000))