Removes and returns an item from the queue.
(self, block: bool = True, timeout: float = None)
| 24 | self.set() |
| 25 | |
| 26 | def get(self, block: bool = True, timeout: float = None) -> T: |
| 27 | """Removes and returns an item from the queue.""" |
| 28 | value = self.queue.get(block, timeout) |
| 29 | if self.queue.empty(): |
| 30 | self.clear() |
| 31 | return value |
| 32 | |
| 33 | def peek(self, block: bool = True, timeout: float = None) -> T: |
| 34 | return self.queue.peek(block, timeout) |
no outgoing calls