MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / _aclose_all

Function _aclose_all

src/mcp/client/stdio.py:351–354  ·  view source on GitHub ↗

Closes every given stream.

(*streams: AsyncResource)

Source from the content-addressed store, hash-verified

349
350
351async def _aclose_all(*streams: AsyncResource) -> None:
352 """Closes every given stream."""
353 for stream in streams:
354 await stream.aclose()

Callers 1

shutdownFunction · 0.85

Calls 1

acloseMethod · 0.45

Tested by

no test coverage detected