MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / __init__

Method __init__

openspace/communication/runtime_manager.py:77–87  ·  view source on GitHub ↗
(
        self,
        config: CommunicationConfig,
        openspace_factory: OpenSpaceFactory,
    )

Source from the content-addressed store, hash-verified

75
76class SessionRuntimeManager:
77 def __init__(
78 self,
79 config: CommunicationConfig,
80 openspace_factory: OpenSpaceFactory,
81 ):
82 self.config = config
83 self._openspace_factory = openspace_factory
84 self._runtimes: Dict[str, SessionRuntime] = {}
85 self._lock = asyncio.Lock()
86 self._semaphore = asyncio.Semaphore(config.sessions.max_parallel_sessions)
87 self._eviction_task: Optional[asyncio.Task] = None
88
89 async def start(self) -> None:
90 if self._eviction_task is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected