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

Method __init__

asyncpg/pool.py:1047–1051  ·  view source on GitHub ↗
(self, pool: Pool, timeout: Optional[float])

Source from the content-addressed store, hash-verified

1045 __slots__ = ('timeout', 'connection', 'done', 'pool')
1046
1047 def __init__(self, pool: Pool, timeout: Optional[float]) -> None:
1048 self.pool = pool
1049 self.timeout = timeout
1050 self.connection = None
1051 self.done = False
1052
1053 async def __aenter__(self):
1054 if self.connection is not None or self.done:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected