- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for __aexit__ (0.15 seconds)
-
fastapi/concurrency.py
async def contextmanager_in_threadpool( cm: AbstractContextManager[_T], ) -> AsyncGenerator[_T, None]: # blocking __exit__ from running waiting on a free thread # can create race conditions/deadlocks if the context manager itself # has its own internal pool (e.g. a database connection pool) # to avoid this we let __exit__ run without a capacity limit # since we're creating a new limiter for each call, any non-zero limit
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.5K bytes - Click Count (0) -
docs_src/dependencies/tutorial010_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 292 bytes - Click Count (0) -
tests/test_dependency_class.py
@app.get("/async-callable-gen-dependency-class") async def get_async_callable_gen_dependency_class( value: str, instance: AsyncCallableGenDependency = Depends() ): return await instance(value).__anext__() @app.get("/callable-dependency") async def get_callable_dependency(value: str = Depends(callable_dependency)): return value @app.get("/callable-gen-dependency")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 4.4K bytes - Click Count (0)