-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
From reading the documentation on threading.Event.wait https://docs.python.org/3/library/threading.html#threading.Event.wait
I can't tell whether it returns False when it times out, or whether it raises an exception (like TimeoutError) when it times out.
I can do a quick test to find out:
>>> e = threading.Event()
>>> e.wait(1)
FalseBut it would be nice if I could tell from the documentation.
maybe something like this:
- and the operation times out.
+ and the operation times out, when it will return `False`.
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Done