mirror of
https://github.com/python/cpython.git
synced 2026-01-26 12:55:08 +00:00
gh-141831: Document behavior of functools.lru_cache with concurrent access (gh-141869)
This commit is contained in:
parent
04e3670f6b
commit
9346e22dd0
@ -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…
x
Reference in New Issue
Block a user