mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
utilize yield from
This commit is contained in:
parent
075bbb176f
commit
4993cc0a5b
11 changed files with 18 additions and 36 deletions
|
@ -198,8 +198,7 @@ def as_completed(fs, timeout=None):
|
|||
waiter = _create_and_install_waiters(fs, _AS_COMPLETED)
|
||||
|
||||
try:
|
||||
for future in finished:
|
||||
yield future
|
||||
yield from finished
|
||||
|
||||
while pending:
|
||||
if timeout is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue