@classmethod
    def current(cls):
        """Gets the current timeout for the current task in seconds. That is the number of seconds before the current task
        will timeout by raising a :class:`~concurrence.core.TimeoutError`. A timeout of -1 indicates that there is no timeout for the
        current task."""
        try:
            t = cls._local.t
        except __HOLE__:
            t = None
        if t is None: #no timeout defined for current task, so return indefinte timeout
            return -1
        else:
            return t.current()
dataset/ETHPy150Open concurrence/concurrence/lib/concurrence/timer.py/Timeout.current