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

Method run

uvicorn/supervisors/basereload.py:50–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.should_exit.set()
49
50 def run(self) -> None:
51 self.startup()
52 for changes in self:
53 if changes:
54 logger.warning(
55 "%s detected changes in %s. Reloading...",
56 self.reloader_name,
57 ", ".join(map(_display_path, changes)),
58 )
59 self.restart()
60
61 self.shutdown()
62
63 def pause(self) -> None:
64 if self.should_exit.wait(self.config.reload_delay):

Callers 2

handle_eventsMethod · 0.45
_start_asgi_taskMethod · 0.45

Calls 4

startupMethod · 0.95
restartMethod · 0.95
shutdownMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected