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

Function try_run

tests/server/test_streamable_http_manager.py:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 errors: list[Exception] = []
48
49 async def try_run():
50 try:
51 async with manager.run():
52 # Simulate some work
53 await anyio.sleep(0.1)
54 except RuntimeError as e:
55 errors.append(e)
56
57 # Try to run concurrently
58 async with anyio.create_task_group() as tg:

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected