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

Method _detach

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

Source from the content-addressed store, hash-verified

111 return getattr(self._con, attr)
112
113 def _detach(self) -> Optional[connection.Connection]:
114 if self._con is None:
115 return
116
117 con, self._con = self._con, None
118 con._set_proxy(None)
119 return con
120
121 def __repr__(self) -> str:
122 if self._con is None:

Callers 1

_releaseMethod · 0.80

Calls 1

_set_proxyMethod · 0.80

Tested by

no test coverage detected