MCPcopy
hub / github.com/encode/uvicorn / run

Method run

uvicorn/server.py:74–75  ·  view source on GitHub ↗
(self, sockets: list[socket.socket] | None = None)

Source from the content-addressed store, hash-verified

72 return self.config.limit_max_requests + random.randint(0, self.config.limit_max_requests_jitter)
73
74 def run(self, sockets: list[socket.socket] | None = None) -> None:
75 return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
76
77 async def serve(self, sockets: list[socket.socket] | None = None) -> None:
78 with self.capture_signals():

Callers 3

runFunction · 0.95
asyncio_runFunction · 0.45
test_base_reloader_runFunction · 0.45

Calls 3

serveMethod · 0.95
asyncio_runFunction · 0.90
get_loop_factoryMethod · 0.80

Tested by 1

test_base_reloader_runFunction · 0.36