I need to wait in a script until a certain number of conditions become true?
I know I can roll my own eventing using condition variables and friends, but I don\'t wa
This worked for me
direction = '' t = 0 while direction == '' and t <= 1: sleep(0.1) t += 0.1
This is for waiting for a signal while making sure time limit of 1 second