MCPcopy
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()

Calls 1

setMethod · 0.45

Tested by

no test coverage detected