mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-141831: Document behavior of functools.lru_cache with concurrent access (gh-141869)
This commit is contained in:
parent
04e3670f6b
commit
9346e22dd0
1 changed files with 4 additions and 0 deletions
|
|
@ -57,6 +57,10 @@ The :mod:`functools` module defines the following functions:
|
|||
another thread makes an additional call before the initial call has been
|
||||
completed and cached.
|
||||
|
||||
Call-once behavior is not guaranteed because locks are not held during the
|
||||
function call. Potentially another call with the same arguments could
|
||||
occur while the first call is still running.
|
||||
|
||||
.. versionadded:: 3.9
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue