Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for _DefaultLifespan (0.31 seconds)

  1. fastapi/routing.py

        return merged_lifespan  # type: ignore[return-value]
    
    
    class _DefaultLifespan:
        """
        Default lifespan context manager that runs on_startup and on_shutdown handlers.
    
        This is a copy of the Starlette _DefaultLifespan class that was removed
        in Starlette. FastAPI keeps it to maintain backward compatibility with
        on_startup and on_shutdown event handlers.
    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