MCPcopy Index your code
hub / github.com/python-websockets/websockets / __aexit__

Method __aexit__

src/websockets/asyncio/server.py:567–574  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc_value: BaseException | None,
        traceback: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

565 return self
566
567 async def __aexit__(
568 self,
569 exc_type: type[BaseException] | None,
570 exc_value: BaseException | None,
571 traceback: TracebackType | None,
572 ) -> None: # pragma: no cover
573 self.close()
574 await self.wait_closed()
575
576
577# This is spelled in lower case because it's exposed as a callable in the API.

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
wait_closedMethod · 0.95

Tested by

no test coverage detected