Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Stack (0.13 sec)

  1. fastapi/dependencies/utils.py

    
    async def solve_generator(
        *, call: Callable[..., Any], stack: AsyncExitStack, sub_values: Dict[str, Any]
    ) -> Any:
        if is_gen_callable(call):
            cm = contextmanager_in_threadpool(contextmanager(call)(**sub_values))
        elif is_async_gen_callable(call):
            cm = asynccontextmanager(call)(**sub_values)
        return await stack.enter_async_context(cm)
    
    
    async def solve_dependencies(
        *,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top