Lines Matching defs:timeout
13 "timeout",
30 Use `timeout()` or `timeout_at()` rather than instantiating this class directly.
34 """Schedule a timeout that will trigger at a given loop time.
36 - If `when` is `None`, the timeout will never trigger.
37 - If `when < loop.time()`, the timeout will trigger on the next
51 """Reschedule the timeout."""
73 """Is timeout expired during execution?"""
125 def timeout(delay: Optional[float]) -> Timeout:
128 Useful in cases when you want to apply timeout logic around block
131 >>> async with asyncio.timeout(10): # 10 seconds timeout
135 delay - value in seconds or None to disable timeout logic
138 the top-most affected timeout() context manager converts CancelledError
146 """Schedule the timeout at absolute time.
148 Like timeout() but argument gives absolute time in the same clock system
158 when - a deadline when timeout occurs or None to disable timeout logic
161 the top-most affected timeout() context manager converts CancelledError