MCPcopy
hub / github.com/redis/redis-py / release

Method release

redis/asyncio/connection.py:1856–1860  ·  view source on GitHub ↗

Releases the connection back to the pool.

(self, connection: AbstractConnection)

Source from the content-addressed store, hash-verified

1854 raise
1855
1856 async def release(self, connection: AbstractConnection):
1857 """Releases the connection back to the pool."""
1858 async with self._condition:
1859 await super().release(connection)
1860 self._condition.notify()

Callers 1

get_connectionMethod · 0.95

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected