(self)
| 242 | yield from self.node_id_cache |
| 243 | |
| 244 | def shutdown(self): |
| 245 | for _, future in self.futures.items(): |
| 246 | if future is not None: |
| 247 | future.cancel() |
| 248 | |
| 249 | for _, future in self.futures.items(): |
| 250 | if future is not None: |
| 251 | try: |
| 252 | future.result() |
| 253 | except concurrent.futures.CancelledError: |
| 254 | pass |
| 255 | future = None |
| 256 | |
| 257 | def shutdown_executor(self): |
| 258 | self.executor.shutdown(wait=True) |
no test coverage detected