()
| 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() |
no test coverage detected
searching dependent graphs…