MCPcopy Create free account
hub / github.com/cppla/moto / worker

Function worker

test/bench.py:150–156  ·  view source on GitHub ↗
(idx: int)

Source from the content-addressed store, hash-verified

148 started = 0
149
150 async def worker(idx: int):
151 nonlocal started
152 async with sem:
153 if jitter > 0:
154 await asyncio.sleep(random.random()*jitter)
155 res = await socks5_http_get(timeout, phase_name)
156 results.append(res)
157
158 tasks = []
159 for i in range(total):

Callers 1

run_phaseFunction · 0.85

Calls 1

socks5_http_getFunction · 0.85

Tested by

no test coverage detected