MCPcopy
hub / github.com/MagicStack/asyncpg / is_connected

Method is_connected

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

Source from the content-addressed store, hash-verified

139 self._generation: Optional[int] = None
140
141 def is_connected(self) -> bool:
142 return self._con is not None and not self._con.is_closed()
143
144 def is_idle(self) -> bool:
145 return not self._in_use

Callers 3

is_closedMethod · 0.80
get_sizeMethod · 0.80
get_idle_sizeMethod · 0.80

Calls 1

is_closedMethod · 0.80

Tested by

no test coverage detected