D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
2
/
task
/
2
/
root
/
proc
/
3
/
root
/
opt
/
imh-python
/
lib
/
python3.9
/
site-packages
/
uvicorn
/
lifespan
/
Filename :
off.py
back
Copy
from __future__ import annotations from typing import Any from uvicorn import Config class LifespanOff: def __init__(self, config: Config) -> None: self.should_exit = False self.state: dict[str, Any] = {} async def startup(self) -> None: pass async def shutdown(self) -> None: pass