(self, timeout=None)
| 64 | self._consumer.consume() |
| 65 | |
| 66 | def drain_events(self, timeout=None): |
| 67 | if self._connection: |
| 68 | with self.reconnect_on_error(): |
| 69 | return self._connection.drain_events(timeout=timeout) |
| 70 | elif timeout: |
| 71 | time.sleep(timeout) |
| 72 | |
| 73 | def _reconnect(self): |
| 74 | """Close the stale connection and rebuild the consumer. |
no test coverage detected