MCPcopy Index your code
hub / github.com/github/copilot-sdk / __aexit__

Method __aexit__

python/copilot/session.py:2802–2813  ·  view source on GitHub ↗

Exit the async context manager. Automatically disconnects the session and releases all associated resources.

(
        self,
        exc_type: type[BaseException] | None = None,
        exc_val: BaseException | None = None,
        exc_tb: TracebackType | None = None,
    )

Source from the content-addressed store, hash-verified

2800 return self
2801
2802 async def __aexit__(
2803 self,
2804 exc_type: type[BaseException] | None = None,
2805 exc_val: BaseException | None = None,
2806 exc_tb: TracebackType | None = None,
2807 ) -> None:
2808 """
2809 Exit the async context manager.
2810
2811 Automatically disconnects the session and releases all associated resources.
2812 """
2813 await self.disconnect()
2814
2815 async def abort(self) -> None:
2816 """

Callers

nothing calls this directly

Calls 1

disconnectMethod · 0.95

Tested by

no test coverage detected