mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
b0b428510c
commit
0ec34cab9d
10 changed files with 304 additions and 451 deletions
|
@ -578,7 +578,7 @@ def as_completed(fs, *, loop=None, timeout=None):
|
|||
raise TypeError(f"expect an iterable of futures, not {type(fs).__name__}")
|
||||
|
||||
from .queues import Queue # Import here to avoid circular import problem.
|
||||
done = Queue(loop=loop)
|
||||
done = Queue()
|
||||
|
||||
if loop is None:
|
||||
loop = events.get_event_loop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue