Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
105
class
Queue(queue.Queue):
# type: ignore[type-arg]
Callers
6
test_reconnect_after_grow_failed
Function · 0.95
test_refill_on_check
Function · 0.95
test_cancellation_in_queue
Function · 0.95
test_cancellation_in_queue
Function · 0.95
test_cancellation_in_queue
Function · 0.95
unblocker
Function · 0.45
Calls
1
wait
Method · 0.45
Tested by
6
test_reconnect_after_grow_failed
Function · 0.76
test_refill_on_check
Function · 0.76
test_cancellation_in_queue
Function · 0.76
test_cancellation_in_queue
Function · 0.76
test_cancellation_in_queue
Function · 0.76
unblocker
Function · 0.36