Remove and return an item from the queue without blocking. Only get an item if one is immediately available. Otherwise raise the ``Empty`` exception.
(self)
| 201 | return item |
| 202 | |
| 203 | def get_nowait(self) -> _T: |
| 204 | """Remove and return an item from the queue without blocking. |
| 205 | |
| 206 | Only get an item if one is immediately available. Otherwise |
| 207 | raise the ``Empty`` exception. |
| 208 | """ |
| 209 | |
| 210 | return self.get(False) |
| 211 | |
| 212 | def _init(self, maxsize: int) -> None: |
| 213 | self.maxsize = maxsize |