(self, timeout: float = None)
| 125 | self._return = self.target(*self.args, **self.kwargs) |
| 126 | |
| 127 | def get(self, timeout: float = None) -> TReturn: |
| 128 | self.join(timeout) |
| 129 | try: |
| 130 | return self._return |
| 131 | except AttributeError: |
| 132 | raise RuntimeError("Something went wrong. No `_return` property was set") |
| 133 | |
| 134 | |
| 135 | class TimerClass(threading.Thread): |
no outgoing calls