I have a schedule checker that needs to run until a user presses a key to make it stop.
My thoughts on doing this are as follows:
- The user starts the process
- Process runs every 10 seconds
- When the process is not running, Console.ReadLine(); gives the user the option to press "q" to stop the process
My approach would work fine except the user would have to wait however long the process takes to complete before being able to stop it. Is there any way to simultaneously run the process while being able to take a user input?