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

Method is_connected

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

Source from the content-addressed store, hash-verified

157 self._generation: Optional[int] = None
158
159 def is_connected(self) -> bool:
160 return self._con is not None and not self._con.is_closed()
161
162 def is_idle(self) -> bool:
163 return not self._in_use

Calls 1

is_closedMethod · 0.80