I have a loop in my code that checks for data that another process is creating. I
check for the data,
if it's not found then increment a counter variable,
wait 6 seconds
start at the top of the loop until the counter reaches 8
then prompt to user to try the loop again or exit the loop without the data.
I'd like to come up with a way to enable the user to interrupt the loop instead of having to wait for the 48 seconds for the loop to process. Anyone have a good way to do that?