Skip to content

Commit dfe8384

Browse files
authored
Update Lib/asyncio/staggered.py
1 parent 9501879 commit dfe8384

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/asyncio/staggered.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ async def run_one_coro(ok_to_start, previous_failed) -> None:
152152
# first_task has been appended to running_tasks so first_task is ok to start.
153153
ok_to_start.set()
154154
propagate_cancellation_error = None
155+
# Make sure no tasks are left running if we leave this function
155156
while running_tasks:
156157
if on_completed_fut is None:
157158
on_completed_fut = loop.create_future()

0 commit comments

Comments
 (0)