Exit the async context manager, close connections, and restore previous context.
(self, exc_type: Any, exc_val: Any, exc_tb: Any)
| 513 | return self |
| 514 | |
| 515 | async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: |
| 516 | """ |
| 517 | Exit the async context manager, close connections, and restore previous context. |
| 518 | """ |
| 519 | await self.close_connections() |
| 520 | self._apps = None |
| 521 | self._inited = False |
| 522 | self.__exit__(exc_type, exc_val, exc_tb) |
| 523 | |
| 524 | |
| 525 | @asynccontextmanager |