Return True if there are maxsize items in the queue. Note: if the Queue was initialized with maxsize=0 (the default), then full() is never True.
(self)
| 97 | return not self._queue |
| 98 | |
| 99 | def full(self): |
| 100 | """Return True if there are maxsize items in the queue. |
| 101 | |
| 102 | Note: if the Queue was initialized with maxsize=0 (the default), |
| 103 | then full() is never True. |
| 104 | """ |
| 105 | if self._maxsize <= 0: |
| 106 | return False |
| 107 | else: |
| 108 | return self.qsize() >= self._maxsize |
| 109 | |
| 110 | async def put(self, item): |
| 111 | """Put an item into the queue. |
no test coverage detected