Check if the queue is empty in a thread-safe manner. Parameters: - None Returns: - bool: True if the queue is empty, False otherwise.
(self)
| 141 | self._queue.get() |
| 142 | |
| 143 | def is_empty(self): |
| 144 | """ |
| 145 | Check if the queue is empty in a thread-safe manner. |
| 146 | |
| 147 | Parameters: |
| 148 | - None |
| 149 | |
| 150 | Returns: |
| 151 | - bool: True if the queue is empty, False otherwise. |
| 152 | """ |
| 153 | with self._lock: |
| 154 | return self._queue.empty() |
| 155 | |
| 156 | def size(self): |
| 157 | """ |
no outgoing calls
no test coverage detected