MCPcopy
hub / github.com/psycopg/psycopg / asleep

Function asleep

tests/acompat.py:77–81  ·  view source on GitHub ↗

Equivalent to asyncio.sleep(), converted to time.sleep() by async_to_sync.

(s)

Source from the content-addressed store, hash-verified

75
76
77def asleep(s):
78 """
79 Equivalent to asyncio.sleep(), converted to time.sleep() by async_to_sync.
80 """
81 return asyncio.sleep(s)
82
83
84def is_alive(t):

Callers 15

notifierFunction · 0.70
test_notify_timeout_0Function · 0.70
test_notifies_blockingFunction · 0.70
napFunction · 0.70
writerFunction · 0.70
closerFunction · 0.70
closerFunction · 0.50
test_shrinkFunction · 0.50
test_reconnectFunction · 0.50
test_reconnect_failureFunction · 0.50

Calls

no outgoing calls

Tested by 15

notifierFunction · 0.56
test_notify_timeout_0Function · 0.56
test_notifies_blockingFunction · 0.56
napFunction · 0.56
writerFunction · 0.56
closerFunction · 0.56
closerFunction · 0.40
test_shrinkFunction · 0.40
test_reconnectFunction · 0.40
test_reconnect_failureFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…