-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-141831:Document behavior of functools.lru_cache with concurrent access #141869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
2ae0c37
5e21e9a
35f6b38
813ea97
f591af5
9147b8b
6748034
bb6a5a6
d821d97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,13 +50,22 @@ | |
| 479001600 | ||
|
|
||
| The cache is threadsafe so that the wrapped function can be used in | ||
| multiple threads. This means that the underlying data structure will | ||
| multiple threads. This means that the underlying data structure will | ||
| remain coherent during concurrent updates. | ||
|
|
||
| It is possible for the wrapped function to be called more than once if | ||
| 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 | ||
|
||
| before the first call has returned. | ||
|
|
||
rhettinger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <<<<<<< HEAD | ||
| ======= | ||
|
Check warning on line 66 in Doc/library/functools.rst
|
||
|
||
|
|
||
| >>>>>>> ad161da7c8 (fixes) | ||
| .. versionadded:: 3.9 | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.