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

Method _cancel

tests/test_pool.py:39–41  ·  view source on GitHub ↗
(self, waiter)

Source from the content-addressed store, hash-verified

37class SlowCancelConnection(pg_connection.Connection):
38 """Connection class to simulate races with Connection._cancel()."""
39 async def _cancel(self, waiter):
40 await asyncio.sleep(0.2)
41 return await super()._cancel(waiter)
42
43
44class TestPool(tb.ConnectedTestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected