Clear all messages from the queue.
(self)
| 407 | return items |
| 408 | |
| 409 | def clear(self): |
| 410 | """Clear all messages from the queue.""" |
| 411 | with self.buffer.mutex: |
| 412 | # Empty the queue |
| 413 | self.buffer.queue.clear() |
| 414 | |
| 415 | async def message_generator(self, style: Literal["obj", "api"] = "obj"): |
| 416 | while True: |
nothing calls this directly
no outgoing calls
no test coverage detected