Skip to content

Commit 481063b

Browse files
committed
Remove mention of threads from the async connection code
1 parent b3e7893 commit 481063b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/asyncio/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,15 +1109,15 @@ def set_retry(self, retry: "Retry") -> None:
11091109

11101110
class BlockingConnectionPool(ConnectionPool):
11111111
"""
1112-
Thread-safe blocking connection pool::
1112+
A blocking connection pool::
11131113
11141114
>>> from redis.client import Redis
11151115
>>> client = Redis(connection_pool=BlockingConnectionPool())
11161116
11171117
It performs the same function as the default
11181118
:py:class:`~redis.ConnectionPool` implementation, in that,
11191119
it maintains a pool of reusable connections that can be shared by
1120-
multiple redis clients (safely across threads if required).
1120+
multiple async redis clients.
11211121
11221122
The difference is that, in the event that a client tries to get a
11231123
connection from the pool when all of connections are in use, rather than
@@ -1160,7 +1160,7 @@ def __init__(
11601160
)
11611161

11621162
def reset(self):
1163-
# Create and fill up a thread safe queue with ``None`` values.
1163+
# Create and fill up a queue with ``None`` values.
11641164
self.pool = self.queue_class(self.max_connections)
11651165
while True:
11661166
try:

0 commit comments

Comments
 (0)