()
| 620 | disconnected.set() |
| 621 | |
| 622 | async def stream_indefinitely() -> AsyncIterator[bytes]: |
| 623 | while True: |
| 624 | # Need a sleep for the event loop to switch to another task |
| 625 | await anyio.sleep(0) |
| 626 | yield b"chunk " |
| 627 | |
| 628 | response = StreamingResponse(content=stream_indefinitely()) |
| 629 |
no outgoing calls
no test coverage detected