Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cm (0.11 sec)

  1. fastapi/concurrency.py

        try:
            yield await run_in_threadpool(cm.__enter__)
        except Exception as e:
            ok = bool(
                await anyio.to_thread.run_sync(
                    cm.__exit__, type(e), e, None, limiter=exit_limiter
                )
            )
            if not ok:
                raise e
        else:
            await anyio.to_thread.run_sync(
                cm.__exit__, None, None, None, limiter=exit_limiter
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Dec 25 17:57:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

    ) -> 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(
        *,
        request: Union[Request, WebSocket],
        dependant: Dependant,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top