Method representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the a
(self)
| 969 | self._started.wait() |
| 970 | |
| 971 | def run(self): |
| 972 | """Method representing the thread's activity. |
| 973 | |
| 974 | You may override this method in a subclass. The standard run() method |
| 975 | invokes the callable object passed to the object's constructor as the |
| 976 | target argument, if any, with sequential and keyword arguments taken |
| 977 | from the args and kwargs arguments, respectively. |
| 978 | |
| 979 | """ |
| 980 | try: |
| 981 | if self._target is not None: |
| 982 | self._target(*self._args, **self._kwargs) |
| 983 | finally: |
| 984 | # Avoid a refcycle if the thread is running a function with |
| 985 | # an argument that has a member that points to the thread. |
| 986 | del self._target, self._args, self._kwargs |
| 987 | |
| 988 | def _bootstrap(self): |
| 989 | # Wrapper around the real bootstrap code that ignores |
no test coverage detected