Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AsyncExitStack (0.05 sec)

  1. fastapi/routing.py

                # Starts customization
                response_awaited = False
                async with AsyncExitStack() as request_stack:
                    scope["fastapi_inner_astack"] = request_stack
                    async with AsyncExitStack() as function_stack:
                        scope["fastapi_function_astack"] = function_stack
                        response = await f(request)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  2. fastapi/applications.py

                    # new contextvars context copy by using a new AnyIO task group.
                    # This AsyncExitStack preserves the context for contextvars, not
                    # strictly necessary for closing files but it was one of the original
                    # intentions.
                    # If the AsyncExitStack lived outside of the custom middlewares and
                    # contextvars were set, for example in a dependency with 'yield'
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
Back to top