Skip to content

Commit 02b0a62

Browse files
committed
Cancel pending tasks concurrently
Rather then sequentially by waiting on each
1 parent b4ef82d commit 02b0a62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

juju/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ async def run_with_interrupt(task, *events, log=None):
181181
return_when=jasyncio.FIRST_COMPLETED)
182182
for f in pending:
183183
f.cancel() # cancel unfinished tasks
184+
for f in pending:
184185
try:
185186
await f
186187
except jasyncio.CancelledError:

0 commit comments

Comments
 (0)