Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/uvicorn
/ LifespanOff
Class
LifespanOff
uvicorn/lifespan/off.py:8–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
7
8
class
LifespanOff:
9
def
__init__(self, config: Config) -> None:
10
self.should_exit = False
11
self.state: dict[str, Any] = {}
12
13
async
def
startup(self) -> None:
14
pass
15
16
async
def
shutdown(self) -> None:
17
pass
Callers
4
test
Function · 0.90
get_connected_protocol
Function · 0.90
get_connected_ws_protocol
Function · 0.90
get_connected_protocol
Function · 0.90
Calls
no outgoing calls
Tested by
2
test
Function · 0.72
get_connected_protocol
Function · 0.72