Return whether the thread is alive. This method returns True just before the run() method starts until just after the run() method terminates. See also the module function enumerate().
(self)
| 1168 | return self._native_id |
| 1169 | |
| 1170 | def is_alive(self): |
| 1171 | """Return whether the thread is alive. |
| 1172 | |
| 1173 | This method returns True just before the run() method starts until just |
| 1174 | after the run() method terminates. See also the module function |
| 1175 | enumerate(). |
| 1176 | |
| 1177 | """ |
| 1178 | assert self._initialized, "Thread.__init__() not called" |
| 1179 | return self._started.is_set() and not self._os_thread_handle.is_done() |
| 1180 | |
| 1181 | @property |
| 1182 | def daemon(self): |