MCPcopy
hub / github.com/psycopg/psycopg / ensure_waiting

Function ensure_waiting

tests/pool/test_pool_common.py:702–707  ·  view source on GitHub ↗

Wait until there are at least *num* clients waiting in the queue.

(p, num=1)

Source from the content-addressed store, hash-verified

700
701
702def ensure_waiting(p, num=1):
703 """
704 Wait until there are at least *num* clients waiting in the queue.
705 """
706 while len(p._waiting) < num:
707 sleep(0)

Callers 15

test_resetFunction · 0.70
test_reset_badstateFunction · 0.70
test_reset_brokenFunction · 0.70
test_intrans_rollbackFunction · 0.70
test_inerror_rollbackFunction · 0.70
test_active_closeFunction · 0.70
test_fail_rollback_closeFunction · 0.70
test_resetFunction · 0.70
test_reset_badstateFunction · 0.70
test_reset_brokenFunction · 0.70
test_intrans_rollbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected