MCPcopy
hub / github.com/psycopg/psycopg / closer

Function closer

tests/crdb/test_connection_async.py:80–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 (session_id,) = await cur.fetchone()
79
80 async def closer():
81 await asleep(0.2)
82 await conn2.execute("cancel session %s", [session_id])
83
84 t = spawn(closer)
85 t0 = time.time()

Callers

nothing calls this directly

Calls 2

asleepFunction · 0.50
executeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…