title: How to interrupt Console.ReadLine
body: <p>Is it possible to stop the <code>Console.ReadLine()</code> programmatically?</p>
  
  <p>I have a console application: the much of the logic runs on a different thread and in the main thread I accept input using <code>Console.ReadLine()</code>. I'd like to stop reading from console when the separated thread stop running.</p>
  
  <p>How can I achieve this?</p>