(self)
| 111 | return session, initialize_result |
| 112 | |
| 113 | async def reconnect(self): |
| 114 | async with self._lock: |
| 115 | await self._close_session_locked() |
| 116 | await self._open_session_locked() |
| 117 | # Run initialize outside of the lock to avoid deadlocks on nested calls |
| 118 | return await self.ensure_initialized() |
| 119 | |
| 120 | async def close(self): |
| 121 | async with self._lock: |
no test coverage detected