MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / worker

Function worker

tests/smoke_test_mcp.py:196–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 import threading
195 errors = []
196 def worker():
197 try:
198 for _ in range(20):
199 s = store.create("a", "b", {}, [])
200 store.get(s.session_id)
201 store.remove(s.session_id)
202 except Exception as e:
203 errors.append(str(e))
204 threads = [threading.Thread(target=worker) for _ in range(5)]
205 for t in threads:
206 t.start()

Callers

nothing calls this directly

Calls 3

createMethod · 0.80
getMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected