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

Method cancel

tests/test_timeout.py:167–170  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

165 cancel_started = asyncio.Event()
166
167 async def cancel(**kwargs):
168 cancel_started.set()
169 if not cancel_sent:
170 await self.loop.create_future()
171
172 # Exercise the actual Cython futures: either the cancel connection
173 # stalls, or it closes without the query receiving ReadyForQuery.

Calls

no outgoing calls

Tested by

no test coverage detected