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

Method _cancel

tests/test_pool.py:44–46  ·  view source on GitHub ↗
(self, waiter, cancel_waiter=None)

Source from the content-addressed store, hash-verified

42class SlowCancelConnection(pg_connection.Connection):
43 """Connection class to simulate races with Connection._cancel()."""
44 async def _cancel(self, waiter, cancel_waiter=None):
45 await asyncio.sleep(0.2)
46 return await super()._cancel(waiter, cancel_waiter)
47
48
49class TestPool(tb.ConnectedTestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected