Browse Source
The async generator in the StreamingResponse docs example did not await anything, causing all chunks to be returned at once instead of streaming. Added await asyncio.sleep(0) so the event loop can yield between chunks, enabling proper streaming behavior. Closes #14680pull/14887/head
1 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue