title: Thread.Sleep replacement in .NET for Windows Store
body: <p><a href="http://msdn.microsoft.com/en-us/library/d00bd51t.aspx" rel="nofollow noreferrer">Thread.Sleep</a> doesn't seem to be supported in .NET for Windows Store apps. </p>
  
  <p>For example, this</p>
  
  <pre><code>System.Threading.Thread.Sleep(1000);
  </code></pre>
  
  <p>will compile when targeting any .NET Framework (2.0, 3.5, 4.0, 4.5), but not when targeting .NET for Windows Store apps (or in a portable class library which targets both 4.5 and store).</p>
  
  <p>System.Threading.Thread is still there, it just doesn't have the Sleep method.</p>
  
  <p>I need to delay something for a few seconds in my app, is there a suitable replacement? </p>
  
  <p>EDIT why the delay is needed: My app is a game and the delay is to make it look like the computer opponent is "thinking" about his next move. The method is already called asynchronously (main thread isn't blocked), I just want to slow the response time down.</p>