Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for _shutdown (0.17 seconds)

  1. fastapi/applications.py

                    """
                ),
            ] = None,
            on_shutdown: Annotated[
                Sequence[Callable[[], Any]] | None,
                Doc(
                    """
                    A list of shutdown event handler functions.
    
                    You should instead use the `lifespan` handlers.
    
                    Read more in the
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  2. docs/en/docs/release-notes.md

    ## 0.93.0 (2023-03-07)
    
    ### Features
    
    * ✨ Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events). Initial PR [#2944](https://github.com/tiangolo/fastapi/pull/2944) by [@uSpike](https://github.com/uSpike).
    
    Now, instead of using independent `startup` and `shutdown` events, you can define that logic in a single function with `yield` decorated with `@asynccontextmanager` (an async context manager).
    
    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