Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/reflex-dev/reflex
/ body
Function
body
tests/units/utils/test_streaming_response.py:19–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
on_finish = AsyncMock()
18
19
async
def
body():
20
try
:
21
yield
b
"payload"
22
await asyncio.Event().wait()
23
finally:
24
body_closed.set()
25
26
async
def
receive() -> dict[str, Any]:
27
await asyncio.Event().wait()
Callers
2
test_send_oserror_raises_client_disconnect_and_closes_body
Function · 0.85
test_pre_2_4_disconnect_cancels_stream_and_runs_finish
Function · 0.85
Calls
1
set
Method · 0.45
Tested by
no test coverage detected