gh-141831: Document behavior of functools.lru_cache with concurrent access (gh-141869)

This commit is contained in:
Satyam Kumar Verman 2025-11-24 09:36:09 -05:00 committed by GitHub
parent 04e3670f6b
commit 9346e22dd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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