MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / __aenter__

Method __aenter__

asyncpg/pool.py:1053–1057  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1051 self.done = False
1052
1053 async def __aenter__(self):
1054 if self.connection is not None or self.done:
1055 raise exceptions.InterfaceError('a connection is already acquired')
1056 self.connection = await self.pool._acquire(self.timeout)
1057 return self.connection
1058
1059 async def __aexit__(
1060 self,

Callers

nothing calls this directly

Calls 1

_acquireMethod · 0.80

Tested by

no test coverage detected