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

Function run_client_until_cancelled

tests/client/test_stdio.py:459–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457 cancel_scope = anyio.CancelScope()
458
459 async def run_client_until_cancelled() -> None:
460 with cancel_scope:
461 async with stdio_client(FAKE_PARAMS):
462 entered.set()
463 await anyio.sleep_forever()
464
465 with anyio.fail_after(5):
466 async with anyio.create_task_group() as tg:

Callers

nothing calls this directly

Calls 3

stdio_clientFunction · 0.90
_lineFunction · 0.85
feedMethod · 0.80

Tested by

no test coverage detected