How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
I start a Task and then use Console.ReadKey to stop the program from exiting. I want to use ReadKey again in the Task but the first key it reads is from the first Console.ReadKey that I use to stop the program from exiting....Does anyone know a solution to this?