MCPcopy
hub / github.com/fastapi/fastapi / _producer

Function _producer

fastapi/routing.py:572–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

570 ](max_buffer_size=1)
571
572 async def _producer() -> None:
573 async with send_stream:
574 async for raw_item in sse_aiter:
575 await send_stream.send(_serialize_sse_item(raw_item))
576
577 send_keepalive, receive_keepalive = (
578 anyio.create_memory_object_stream[bytes](max_buffer_size=1)

Callers

nothing calls this directly

Calls 1

_serialize_sse_itemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…