Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for checkpoint (0.07 seconds)

  1. fastapi/routing.py

                        stream: ObjectReceiveStream[bytes],
                    ) -> AsyncIterator[bytes]:
                        async for data in stream:
                            yield data
                            # Guarantee a checkpoint so cancellation can be
                            # delivered even when the producer is faster than
                            # the consumer and receive() never suspends.
                            await anyio.sleep(0)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top