(self)
| 1373 | self.finished.set() |
| 1374 | |
| 1375 | def run(self): |
| 1376 | self.finished.wait(self.interval) |
| 1377 | if not self.finished.is_set(): |
| 1378 | self.function(*self.args, **self.kwargs) |
| 1379 | self.finished.set() |
| 1380 | |
| 1381 | |
| 1382 | # Special thread class to represent the main thread |
no test coverage detected