Signal the client that, alas, they won't have a connection today. Return True if the client has "accepted" the error, False otherwise (typically because wait() has timed out).
(self, error: Exception)
| 905 | return True |
| 906 | |
| 907 | def fail(self, error: Exception) -> bool: |
| 908 | """Signal the client that, alas, they won't have a connection today. |
| 909 | |
| 910 | Return True if the client has "accepted" the error, False otherwise |
| 911 | (typically because wait() has timed out). |
| 912 | """ |
| 913 | with self._cond: |
| 914 | if self.conn or self.error: |
| 915 | return False |
| 916 | |
| 917 | self.error = error |
| 918 | self._cond.notify_all() |
| 919 | return True |
| 920 | |
| 921 | |
| 922 | class MaintenanceTask(ABC): |
no outgoing calls