MCPcopy
hub / github.com/fastapi/fastapi / _async_stream_jsonl

Function _async_stream_jsonl

fastapi/routing.py:645–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643 if dependant.is_async_gen_callable:
644
645 async def _async_stream_jsonl() -> AsyncIterator[bytes]:
646 async for item in gen:
647 yield _serialize_item(item)
648 # To allow for cancellation to trigger
649 # Ref: https://github.com/fastapi/fastapi/issues/14680
650 await anyio.sleep(0)
651
652 jsonl_stream_content: AsyncIterator[bytes] | Iterator[bytes] = (
653 _async_stream_jsonl()

Callers 1

appFunction · 0.85

Calls 1

_serialize_itemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…