def sleep_time(self):
        """
        Return the amount of time before `run()` does anything, or
        Decimal('Infinity') for a canceled or expired non-repeating timer.
        """
        if self._expiry is None:
            return Infinity
        else:
            return max(self._expiry - self._now(), 0)
dataset/ETHPy150Open SimonSapin/snippets/event_loop/event_loop.py/Timer.sleep_time/original