Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for enter_async_context (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/dependencies/utils.py

            cm = asynccontextmanager(dependant.call)(**sub_values)
        elif dependant.is_gen_callable:
            cm = contextmanager_in_threadpool(contextmanager(dependant.call)(**sub_values))
        return await stack.enter_async_context(cm)
    
    
    @dataclass
    class SolvedDependency:
        values: dict[str, Any]
        errors: list[Any]
        background_tasks: StarletteBackgroundTasks | None
        response: Response
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  2. fastapi/routing.py

                    # so __aexit__ runs via proper structured teardown, not
                    # via GeneratorExit thrown into an async generator.
                    sse_receive_stream = await async_exit_stack.enter_async_context(
                        _sse_producer_cm()
                    )
                    # Ensure the receive stream is closed when the exit stack
                    # unwinds, preventing ResourceWarning from __del__.
    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