We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c4f7ec commit c8515a0Copy full SHA for c8515a0
packages/service-library/src/servicelib/fastapi/app_server.py
@@ -1,4 +1,5 @@
1
import asyncio
2
+import threading
3
from datetime import timedelta
4
from typing import Final
5
@@ -22,7 +23,7 @@ def fastapi_app(self) -> FastAPI:
22
23
assert isinstance(self._app, FastAPI) # nosec
24
return self._app
25
- async def startup(self, completed: asyncio.Event):
26
+ async def startup(self, completed: threading.Event):
27
self._lifespan_manager = LifespanManager(
28
self.fastapi_app,
29
startup_timeout=_STARTUP_TIMEOUT,
0 commit comments