Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MagicStack/asyncpg
/ is_idle
Method
is_idle
asyncpg/pool.py:144–145 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
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
146
147
async
def
connect(self) -> None:
148
if
self._con is not None:
Callers
1
get_idle_size
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected