Skip to content

Commit

Permalink
Uses different all_tasks approach
Browse files Browse the repository at this point in the history
  • Loading branch information
HazardDede committed Apr 29, 2020
1 parent 7a57676 commit 0e5fad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pnp/engines/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def _wait_for_tasks_to_complete(self) -> None:
"""Check if something is still running on the event loop (like running pushes) so that the
event loop will not terminate but wait for pending tasks."""
async def _pending_tasks_exist() -> bool:
all_tasks = list(asyncio.all_tasks()) # pylint: disable=no-member
all_tasks = list(asyncio.Task.all_tasks())
for task in all_tasks:
if task.done():
continue
Expand Down

0 comments on commit 0e5fad6

Please sign in to comment.