Ruby wait next complete for purpose