Skip to content

Commit

Permalink
0.4.4: fix flatten non yielding on single input iterator with quite f…
Browse files Browse the repository at this point in the history
…ast iteration
  • Loading branch information
ebonnal committed Oct 17, 2023
1 parent 8a88c2e commit 0f9c02f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kioss/_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def __iter__(self):
not iterator_exhausted
and executor._work_queue.qsize()
< ThreadedMappingIterable._MAX_QUEUE_SIZE
and n_iterated_elems - n_yields
< ThreadedMappingIterable._MAX_QUEUE_SIZE
):
try:
elem = next(self.iterator)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='kioss',
version='0.4.3',
version='0.4.4',
packages=['kioss'],
url='http://github.com/bonnal-enzo/kioss',
license='Apache 2.',
Expand Down

0 comments on commit 0f9c02f

Please sign in to comment.