Skip to content

Commit

Permalink
fix: incomplete queue
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Jul 15, 2024
1 parent 1973ced commit b6e083e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions a_sync/utils/iterators.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def _as_yielded_done_callback(t: asyncio.Task) -> None:
queue.task_done()
if isinstance(item, _Done):
assert queue.empty()
await task
del task
del queue
if item._exc:
Expand Down

0 comments on commit b6e083e

Please sign in to comment.