def _wait_ready(self, now):
        try:
            first = self.queued[0]
        except __HOLE__:
            self.wake.wait()
            self.wake.clear()
            return
        first_timestamp = first[0]
        if first_timestamp > now:
            self.wake.wait(first_timestamp-now)
            self.wake.clear()
dataset/ETHPy150Open slimta/python-slimta/slimta/queue/__init__.py/Queue._wait_ready