Skip to content

Commit

Permalink
fix: Set changed size during iteration (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Feb 4, 2024
1 parent 0143074 commit 1829381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a_sync/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __persist(task: "asyncio.Task[Any]") -> None:
__prune_persisted_tasks()

def __prune_persisted_tasks():
for task in __persisted_tasks:
for task in tuple(__persisted_tasks):
if task.done():
if e := task.exception():
logger.exception(e)
Expand Down

0 comments on commit 1829381

Please sign in to comment.