Skip to content

Commit 7df27ee

Browse files
committed
clarify that it can be shared across threads without a lock
1 parent 1dd9599 commit 7df27ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/async_utils/lru.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class LRU[K, V]:
5151
Use a threading lock to synchronize access if needed.
5252
5353
This is not locked automatically to avoid paying the cost
54-
in applications that do not share this across threads.
54+
in applications that do not share this across threads or share
55+
across threads in a way that would not require a lock.
5556
5657
Parameters
5758
----------

0 commit comments

Comments
 (0)