title: Best way to make a polling thread
body: <p>In my application I need a background thread that contacts a server every N seconds...</p>
  
  <p>I made it in this way:</p>
  
  <pre><code>Task.Factory.StartNew (() =&gt; {
              while(true)
              {
                  Thread.Sleep (10000);
                  ...do my stuff...
              }
          });
  </code></pre>
  
  <p>This solution works fine but I need to know if there is a better one. (for example: is Task.Delay(10000) a better solution?)</p>
  
  <p>Thanks a lot!</p>