title: Get clipboard text in async method
body: <p>I have a problem getting clipboard text via the async method. Because it always returns an empty value (while it's not empty). This is a simple demonstration of the problem:</p>
  <pre><code>    private async void button_Click(object sender, EventArgs e)
      {
  
          string result = await Task&lt;string&gt;.Run(() =&gt;
          {
              System.Threading.Thread.Sleep(3000);
  
              return Clipboard.GetText(); //returns empty! (but clipboard is not empty)
  
          });
  
          MessageBox.Show(result);
      }
  </code></pre>
  <p>I'm sure that the clipboard is not empty. what's the solution?</p>