Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for contextmanager (0.5 seconds)

  1. fastapi/routing.py

        """
        Wrap a generator-based lifespan context into an async context manager.
    
        This is vendored from Starlette to avoid importing private symbols.
        """
        cmgr = contextlib.contextmanager(lifespan_context)
    
        @functools.wraps(cmgr)
        def wrapper(app: Any) -> _AsyncLiftContextManager[Any]:
            return _AsyncLiftContextManager(cmgr(app))
    
        return wrapper
    
    
    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