Clear the node attr cache
(self)
| 282 | self.warmup() |
| 283 | |
| 284 | def clear_node_attr_cache(self): |
| 285 | """Clear the node attr cache""" |
| 286 | if self.futures["node_attr"] is not None: |
| 287 | self.futures["node_attr"].cancel() |
| 288 | if self.futures["node_attr"] is not None: |
| 289 | try: |
| 290 | self.futures["node_attr"].result() |
| 291 | except concurrent.futures.CancelledError: |
| 292 | pass |
| 293 | self.futures["node_attr"] = None |
| 294 | self.node_attr_cache = () |
| 295 | self.get_node_attr.cache_clear() |
| 296 | self.node_attr_align = False |
| 297 | |
| 298 | def clear_neighbor_attr_cache(self): |
| 299 | """Clear the neighbor attr cache""" |
no test coverage detected