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

Method cancel

tests/test_pool.py:498–500  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

496 cancel_started = asyncio.Event()
497
498 async def cancel(**kwargs):
499 cancel_started.set()
500 await self.loop.create_future()
501
502 with mock.patch.object(connect_utils, '_cancel', cancel):
503 with self.assertRaises(asyncio.TimeoutError):

Calls

no outgoing calls

Tested by

no test coverage detected