Skip to content

Commit

Permalink
feat: add getter for debug queue internal representation
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Apr 29, 2024
1 parent 0002df8 commit 8c1b954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/debug_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ def get(self, block: bool = True, timeout: float | None = None) -> T:
def empty(self) -> bool:
"""Return True if the queue is empty"""
return self.queue.empty()

def get_items(self) -> list[T]:
"""Get internal list of items from the queue"""
return self.items

0 comments on commit 8c1b954

Please sign in to comment.