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

Method delayed_drain

tests/test_timeout.py:262–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260 drain_cancels = proto._drain_cancels
261
262 async def delayed_drain():
263 await asyncio.sleep(0.3)
264 await drain_cancels()
265
266 try:
267 with self.assertRaises(asyncio.TimeoutError):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected