MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / reset

Method reset

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

Source from the content-addressed store, hash-verified

30class SlowResetConnection(pg_connection.Connection):
31 """Connection class to simulate races with Connection.reset()."""
32 async def reset(self, *, timeout=None):
33 await asyncio.sleep(0.2)
34 return await super().reset(timeout=timeout)
35
36
37class SlowCancelConnection(pg_connection.Connection):

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected