diff options
author | Georg Brandl <georg@python.org> | 2010-10-28 09:03:20 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-28 09:03:20 (GMT) |
commit | b9a439175451903ab77c71e5b2020dbd1671a77e (patch) | |
tree | 05f4e3a27501d29451a57b753c75da6e3e3f9794 /Doc | |
parent | cbb9421347c97b5a443b260118931962783d4efc (diff) | |
download | cpython-b9a439175451903ab77c71e5b2020dbd1671a77e.zip cpython-b9a439175451903ab77c71e5b2020dbd1671a77e.tar.gz cpython-b9a439175451903ab77c71e5b2020dbd1671a77e.tar.bz2 |
#10218: return timeout status from Condition.wait, mirroring other primitives' behavior.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/threading.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 3e2e1e3..7c8f709 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -574,6 +574,12 @@ needs to wake up one consumer thread. interface is then used to restore the recursion level when the lock is reacquired. + The return value is ``True`` unless a given *timeout* expired, in which + case it is ``False``. + + .. versionchanged:: 3.2 + Previously, the method always returned ``None``. + .. method:: notify() Wake up a thread waiting on this condition, if any. If the calling thread |