Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  1. docs/en/docs/release-notes.md

    For example:
    
    ```Python
    from contextlib import asynccontextmanager
    
    from fastapi import FastAPI
    
    
    def fake_answer_to_everything_ml_model(x: float):
        return x * 42
    
    
    ml_models = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        # Load the ML model
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top