Put the item on the queue. The optional 'block' and 'timeout' arguments are ignored, as this method never blocks. They are provided for compatibility with the Queue class.
(self, item, block=True, timeout=None)
| 327 | self._count = threading.Semaphore(0) |
| 328 | |
| 329 | def put(self, item, block=True, timeout=None): |
| 330 | '''Put the item on the queue. |
| 331 | |
| 332 | The optional 'block' and 'timeout' arguments are ignored, as this method |
| 333 | never blocks. They are provided for compatibility with the Queue class. |
| 334 | ''' |
| 335 | self._queue.append(item) |
| 336 | self._count.release() |
| 337 | |
| 338 | def get(self, block=True, timeout=None): |
| 339 | '''Remove and return an item from the queue. |
no test coverage detected