MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _get_lock

Function _get_lock

ms_agent/utils/stats.py:18–23  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

16
17
18def _get_lock(path: str) -> asyncio.Lock:
19 lock = _STATS_LOCKS.get(path)
20 if lock is None:
21 lock = asyncio.Lock()
22 _STATS_LOCKS[path] = lock
23 return lock
24
25
26def get_stats_path(config: Any,

Callers 1

append_statsFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected