Explorar o código

app.shutdown doesn't need to be async

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
357c9246f2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/app.py

+ 1 - 1
nicegui/app.py

@@ -38,7 +38,7 @@ class App(FastAPI):
         """
         globals.shutdown_handlers.append(handler)
 
-    async def shutdown(self) -> None:
+    def shutdown(self) -> None:
         """Programmatically shut down NiceGUI.
 
         Only possible when auto-reload is disabled.