MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / reset

Method reset

tests/test_pool.py:37–39  ·  view source on GitHub ↗
(self, *, timeout=None)

Source from the content-addressed store, hash-verified

35class SlowResetConnection(pg_connection.Connection):
36 """Connection class to simulate races with Connection.reset()."""
37 async def reset(self, *, timeout=None):
38 await asyncio.sleep(0.2)
39 return await super().reset(timeout=timeout)
40
41
42class SlowCancelConnection(pg_connection.Connection):

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected