Block until all items in the queue are processed. Returns an awaitable, which raises `tornado.util.TimeoutError` after a timeout.
(
self, timeout: Optional[Union[float, datetime.timedelta]] = None
)
| 290 | self._finished.set() |
| 291 | |
| 292 | def join( |
| 293 | self, timeout: Optional[Union[float, datetime.timedelta]] = None |
| 294 | ) -> Awaitable[None]: |
| 295 | class="st">"""Block until all items in the queue are processed. |
| 296 | |
| 297 | Returns an awaitable, which raises `tornado.util.TimeoutError` after a |
| 298 | timeout. |
| 299 | class="st">""" |
| 300 | return self._finished.wait(timeout) |
| 301 | |
| 302 | def __aiter__(self) -> _QueueIterator[_T]: |
| 303 | return _QueueIterator(self) |