MCPcopy Index your code
hub / github.com/python-websockets/websockets / main

Function main

experiments/broadcast/clients.py:41–47  ·  view source on GitHub ↗
(count, interval)

Source from the content-addressed store, hash-verified

39
40
41async def main(count, interval):
42 asyncio.create_task(log_latency(interval))
43 clients = []
44 for _ in range(count):
45 clients.append(asyncio.create_task(client()))
46 await asyncio.sleep(0.001) # 1ms between each connection
47 await asyncio.wait(clients)
48
49
50if __name__ == "__main__":

Callers 1

clients.pyFile · 0.70

Calls 3

log_latencyFunction · 0.85
appendMethod · 0.80
clientFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…