Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/codebymitch/TitanBot
/ cleanup
Function
cleanup
src/utils/mutex.js:22–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
locks.set(key, nextLock);
21
22
const
cleanup = () => {
23
if
(locks.get(key) === nextLock) {
24
locks.delete(key);
25
}
26
};
27
28
nextLock.then(cleanup, cleanup);
29
Callers
nothing calls this directly
Calls
2
get
Method · 0.45
delete
Method · 0.45
Tested by
no test coverage detected