We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 770e9c0 commit 695a94cCopy full SHA for 695a94c
1 file changed
python/binaryview.py
@@ -9530,11 +9530,14 @@ def __iter__(self):
9530
9531
def __next__(self):
9532
while True:
9533
- if not self.results.empty():
9534
- return self.results.get()
9535
-
9536
- if (not self.thread.is_alive()) and self.results.empty():
9537
- raise StopIteration
+ try:
+ return self.results.get(timeout=0.1)
+ except queue.Empty:
+ if not self.thread.is_alive():
9538
+ return self.results.get_nowait()
9539
9540
+ raise StopIteration
9541
9542
@overload
9543
def find_all_data(
0 commit comments