Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Jul 30, 2018
1 parent 6a2357f commit 1ecf54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiomisc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def wait_for(*coros, raise_first: bool = True,
result = loop.create_future()
waiting = len(coros)

def cancelling():
def cancel_undone():
nonlocal result
nonlocal tasks

Expand Down Expand Up @@ -151,6 +151,6 @@ async def run():
try:
return await result
finally:
cancelling()
cancel_undone()

return run()

0 comments on commit 1ecf54e

Please sign in to comment.