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

Method __aexit__

python/copilot/client.py:1355–1367  ·  view source on GitHub ↗

Exit the async context manager. Performs graceful cleanup by destroying all active sessions and stopping the CLI server.

(
        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

1353 return self
1354
1355 async def __aexit__(
1356 self,
1357 exc_type: type[BaseException] | None = None,
1358 exc_val: BaseException | None = None,
1359 exc_tb: TracebackType | None = None,
1360 ) -> None:
1361 """
1362 Exit the async context manager.
1363
1364 Performs graceful cleanup by destroying all active sessions and stopping
1365 the CLI server.
1366 """
1367 await self.stop()
1368
1369 async def start(self) -> None:
1370 """

Callers 2

test_aexit_calls_stopMethod · 0.95

Calls 1

stopMethod · 0.95

Tested by 2

test_aexit_calls_stopMethod · 0.76