cpython/Lib/asyncio
Diogo Dutra 7e5ef0a571
bpo-42140: Improve asyncio.wait function (GH-22938)
# Improve asyncio.wait function

The original code creates the futures set two times.
We can create this set before, avoiding the second creation.

This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty.

Automerge-Triggered-By: GH:1st1
2020-11-10 14:12:52 -08:00
..
__init__.py bpo-32309: Implement asyncio.to_thread() (GH-20143) 2020-05-18 20:03:28 -07:00
__main__.py
base_events.py
base_futures.py bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) 2020-11-10 15:58:31 +02:00
base_subprocess.py
base_tasks.py
constants.py
coroutines.py
events.py bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852) 2020-08-17 07:19:46 -07:00
exceptions.py
format_helpers.py
futures.py bpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951) 2020-05-17 22:47:31 -07:00
locks.py
log.py
proactor_events.py bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197) 2020-09-12 08:50:18 +02:00
protocols.py
queues.py
runners.py bpo-41696: Fix handling of debug mode in asyncio.run (#22069) 2020-09-02 21:54:46 -07:00
selector_events.py bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197) 2020-09-12 08:50:18 +02:00
sslproto.py bpo-40443: Remove unused imports in the stdlib (GH-19803) 2020-04-30 11:26:33 +02:00
staggered.py
streams.py
subprocess.py
tasks.py bpo-42140: Improve asyncio.wait function (GH-22938) 2020-11-10 14:12:52 -08:00
threads.py Fix asyncio.to_thread() documented return type (GH-20547) 2020-05-31 00:07:04 -07:00
transports.py bpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914) 2020-08-20 18:10:01 +05:30
trsock.py
unix_events.py s/wakup/wakeup (GH-20250) 2020-05-20 10:12:37 -07:00
windows_events.py bpo-39010: Fix errors logged on proactor loop restart (#22017) 2020-08-31 12:57:52 -07:00
windows_utils.py