Use the 3.1+-only return value of Event.wait.