MCPcopy
hub / github.com/psycopg/psycopg / wait_timeout

Method wait_timeout

tests/acompat.py:98–102  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

96 """
97
98 async def wait_timeout(self, timeout):
99 try:
100 return await asyncio.wait_for(self.wait(), timeout)
101 except asyncio.TimeoutError:
102 return False
103
104
105class Queue(queue.Queue): # type: ignore[type-arg]

Callers 6

test_refill_on_checkFunction · 0.95
unblockerFunction · 0.45

Calls 1

waitMethod · 0.45

Tested by 6

test_refill_on_checkFunction · 0.76
unblockerFunction · 0.36