Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/uvicorn
/ drain
Method
drain
uvicorn/protocols/http/flow_control.py:18–19 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
16
self._is_writable_event.set()
17
18
async
def
drain(self) -> None:
19
await self._is_writable_event.wait()
# pragma: full coverage
20
21
def
pause_reading(self) -> None:
22
if
not self.read_paused:
Callers
3
send
Method · 0.80
send
Method · 0.80
extract_json_body
Function · 0.80
Calls
no outgoing calls
Tested by
1
extract_json_body
Function · 0.64