mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix issue #20367: concurrent.futures.as_completed() for duplicate arguments.
Patch by Glenn Langford.
This commit is contained in:
parent
252fd0c24b
commit
e6994ff6e3
4 changed files with 16 additions and 3 deletions
|
@ -371,7 +371,8 @@ Module Functions
|
|||
|
||||
Returns an iterator over the :class:`Future` instances (possibly created by
|
||||
different :class:`Executor` instances) given by *fs* that yields futures as
|
||||
they complete (finished or were cancelled). Any futures that completed
|
||||
they complete (finished or were cancelled). Any futures given by *fs* that
|
||||
are duplicated will be returned once. Any futures that completed
|
||||
before :func:`as_completed` is called will be yielded first. The returned
|
||||
iterator raises a :exc:`TimeoutError` if :meth:`~iterator.__next__` is
|
||||
called and the result isn't available after *timeout* seconds from the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue