Skip to content

Commit a3e41e5

Browse files
SkvProgrammerashm-dev
authored andcommitted
pythongh-141831: Document behavior of functools.lru_cache with concurrent access (pythongh-141869)
1 parent ca9b915 commit a3e41e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/functools.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ The :mod:`functools` module defines the following functions:
5757
another thread makes an additional call before the initial call has been
5858
completed and cached.
5959

60+
Call-once behavior is not guaranteed because locks are not held during the
61+
function call. Potentially another call with the same arguments could
62+
occur while the first call is still running.
63+
6064
.. versionadded:: 3.9
6165

6266

0 commit comments

Comments
 (0)