MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _detach

Method _detach

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

Source from the content-addressed store, hash-verified

93 return getattr(self._con, attr)
94
95 def _detach(self) -> Optional[connection.Connection]:
96 if self._con is None:
97 return
98
99 con, self._con = self._con, None
100 con._set_proxy(None)
101 return con
102
103 def __repr__(self) -> str:
104 if self._con is None:

Callers 1

_releaseMethod · 0.80

Calls 1

_set_proxyMethod · 0.80

Tested by

no test coverage detected