(self, message)
| 46 | return results |
| 47 | |
| 48 | def add_message(self, message): |
| 49 | self.cache.append(message) |
| 50 | if len(self.cache) > self.cache_size: |
| 51 | self.cache = self.cache[-self.cache_size :] |
| 52 | self.cond.notify_all() |
| 53 | |
| 54 | |
| 55 | # Making this a non-singleton is left as an exercise for the reader. |
no test coverage detected