Subclasses must implement this method. It should attempt to open a new Connection and return it; if a failure occurs, an Exception should be raised.
(self)
| 305 | self._cancelled = True |
| 306 | |
| 307 | def try_reconnect(self): |
| 308 | """ |
| 309 | Subclasses must implement this method. It should attempt to |
| 310 | open a new Connection and return it; if a failure occurs, an |
| 311 | Exception should be raised. |
| 312 | """ |
| 313 | raise NotImplementedError() |
| 314 | |
| 315 | def on_reconnection(self, connection): |
| 316 | """ |