Lines Matching refs:Timeout
12 "Timeout",
27 class Timeout:
55 f"Cannot change state of {self._state.value} Timeout",
82 return f"<Timeout [{self._state.value}]{info_str}>"
84 async def __aenter__(self) -> "Timeout":
89 raise RuntimeError("Timeout should be used inside a task")
125 def timeout(delay: Optional[float]) -> Timeout:
126 """Timeout async context manager.
142 return Timeout(loop.time() + delay if delay is not None else None)
145 def timeout_at(when: Optional[float]) -> Timeout:
164 return Timeout(when)