Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
def
_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
26
def
get_stats_path(config: Any,
Callers
1
append_stats
Function · 0.85
Calls
1
get
Method · 0.80
Tested by
no test coverage detected