title: Wait for request of CancellationToken cancellation
body: <p>How can I pause the executing until the cancellation is requested?</p>
  
  <pre><code>var cts = new CancellationTokenSource();
  
  Task.Run(() =&gt;
  {
      // Wait for the Cancel...
  
      Console.WriteLine("Canceled!");
  });
  
  Console.ReadKey();
  
  cts.Cancel();
  
  Console.ReadKey();
  </code></pre>