Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for stream_jsonl (0.25 seconds)

  1. tests/test_stream_cancellation.py

        """Async generator with no internal await - would hang without checkpoint."""
        i = 0
        while True:
            yield f"item {i}\n"
            i += 1
    
    
    @app.get("/stream-jsonl")
    async def stream_jsonl() -> AsyncIterable[int]:
        """JSONL async generator with no internal await."""
        i = 0
        while True:
            yield i
            i += 1
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 2.7K bytes
    - Click Count (0)
Back to Top