Use the return value of Event.wait more efficiently.