Close all connections & client if initialized.
(self)
| 581 | return self |
| 582 | |
| 583 | async def aclose(self) -> None: |
| 584 | """Close all connections & client if initialized.""" |
| 585 | if not self._initialize: |
| 586 | if not self._lock: |
| 587 | self._lock = asyncio.Lock() |
| 588 | async with self._lock: |
| 589 | if not self._initialize: |
| 590 | self._initialize = True |
| 591 | await self.nodes_manager.aclose() |
| 592 | await self.nodes_manager.aclose("startup_nodes") |
| 593 | |
| 594 | @deprecated_function(version="5.0.0", reason="Use aclose() instead", name="close") |
| 595 | async def close(self) -> None: |
no outgoing calls