MCPcopy
hub / github.com/AstrBotDevs/AstrBot / acquire_lock

Method acquire_lock

astrbot/core/utils/session_lock.py:49–52  ·  view source on GitHub ↗
(self, session_id: str)

Source from the content-addressed store, hash-verified

47
48 @asynccontextmanager
49 async def acquire_lock(self, session_id: str):
50 manager = self._get_loop_manager()
51 async with manager.acquire_lock(session_id):
52 yield
53
54
55session_lock_manager = SessionLockManager()

Calls 1

_get_loop_managerMethod · 0.95