(demo: Optional[Blocks], app: FastAPI)
| 245 | |
| 246 | |
| 247 | def app_started_callback(demo: Optional[Blocks], app: FastAPI): |
| 248 | for c in ordered_callbacks('app_started'): |
| 249 | try: |
| 250 | c.callback(demo, app) |
| 251 | timer.startup_timer.record(os.path.basename(c.script)) |
| 252 | except Exception: |
| 253 | report_exception(c, 'app_started_callback') |
| 254 | |
| 255 | |
| 256 | def app_reload_callback(): |
nothing calls this directly
no test coverage detected