mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 14:06:43 +00:00
queue_iter fix
This commit is contained in:
parent
71cd00c063
commit
f4a5e6cf53
@ -12,7 +12,7 @@ class StatefulStreamWorker:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def run(self, q: Queue):
|
def run(self, q: Queue):
|
||||||
for chunk in queue_iter(q, timeout=3):
|
for chunk in queue_iter(q, joinable=False, timeout=3):
|
||||||
self.process_chunk(chunk)
|
self.process_chunk(chunk)
|
||||||
|
|
||||||
def process_chunk(self, chunk):
|
def process_chunk(self, chunk):
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="hexlib",
|
name="hexlib",
|
||||||
version="1.53",
|
version="1.54",
|
||||||
description="Misc utility methods",
|
description="Misc utility methods",
|
||||||
author="simon987",
|
author="simon987",
|
||||||
author_email="me@simon987.net",
|
author_email="me@simon987.net",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user