Lines Matching refs:timeout
563 # async with asyncio.timeout(1):
564 # # Structured block affected by the timeout:
568 # pass # There was a timeout
569 # # Outer code not affected by the timeout:
574 async def make_request_with_timeout(*, sleep: float, timeout: float):
587 timeout_handle = loop.call_later(timeout, on_timeout)
590 # Structured block affected by the timeout
633 # Outer code not affected by the timeout:
640 t1 = self.new_task(loop, make_request_with_timeout(sleep=10.0, timeout=0.1))
652 t2 = self.new_task(loop, make_request_with_timeout(sleep=0, timeout=10.0))
1303 done, pending = await asyncio.wait([b, a], timeout=0.11)
1331 asyncio.wait([b, a], timeout=0.1))
1419 for f in asyncio.as_completed([a, b], timeout=0.12):
1452 for f in asyncio.as_completed([a], timeout=1):
3202 def target(self, fail=False, cancel=False, timeout=None,
3215 return future.result(timeout)
3235 when a timeout is raised."""
3236 callback = lambda: self.target(timeout=0)