mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
concurrent.futures: Fix typo in docstring (#92121)
This commit is contained in:
parent
e6040604b3
commit
b11243e85e
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ class Future(object):
|
|||
return self._state == RUNNING
|
||||
|
||||
def done(self):
|
||||
"""Return True of the future was cancelled or finished executing."""
|
||||
"""Return True if the future was cancelled or finished executing."""
|
||||
with self._condition:
|
||||
return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue