- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for KeepAlive (0.05 seconds)
-
tests/test_sse.py
] assert len(data_lines) == 2 # Keepalive ping tests keepalive_app = FastAPI() @keepalive_app.get("/slow-async", response_class=EventSourceResponse) async def slow_async_stream(): yield {"n": 1} # Sleep longer than the (monkeypatched) ping interval so a keepalive # comment is emitted before the next item. await asyncio.sleep(0.3)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 9.8K bytes - Click Count (0) -
fastapi/routing.py
ObjectReceiveStream[bytes] ]: # Use a memory stream to decouple generator iteration # from the keepalive timer. A producer task pulls items # from the generator independently, so # `anyio.fail_after` never wraps the generator's
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0)