Wait for thread lock to shut down the background thread.
(self)
| 1189 | time.sleep(0.01) |
| 1190 | |
| 1191 | def _try_shutdown(self): |
| 1192 | """ |
| 1193 | Wait for thread lock to shut down the background thread. |
| 1194 | |
| 1195 | """ |
| 1196 | with self._update_lock: |
| 1197 | if self._replace_done: |
| 1198 | self._round = 0 |
| 1199 | self._start_pos = 0 |
| 1200 | self._compute_data_idx() |
| 1201 | self._replace_done = False |
| 1202 | return True |
| 1203 | return False |
| 1204 | |
| 1205 | def shutdown(self): |
| 1206 | """ |
no test coverage detected