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

Method retry_sleep

tests/test_pool.py:1028–1032  ·  view source on GitHub ↗
(delay)

Source from the content-addressed store, hash-verified

1026 return await pg_connection.connect(*args, **kwargs)
1027
1028 async def retry_sleep(delay):
1029 if asyncio.current_task() is not pool._maintenance_task:
1030 return await real_sleep(delay)
1031 delays.put_nowait(delay)
1032 await resume.get()
1033
1034 async with self.create_pool(
1035 init_size=1, min_size=1, max_size=1, connect=connect,

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected