- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 269 for __exit__ (0.03 sec)
-
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
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.5K bytes - Viewed (0) -
docs_src/dependencies/tutorial010_py39.py
class MySuperContextManager: def __init__(self): self.db = DBSession() def __enter__(self): return self.db def __exit__(self, exc_type, exc_value, traceback): self.db.close() async def get_db(): with MySuperContextManager() as db:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 292 bytes - Viewed (0) -
docs_src/additional_responses/__init__.py
Motov Yurii <******@****.***> 1766745782 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - Viewed (0) -
docs_src/async_tests/__init__.py
Felix Böhm <******@****.***> 1596909678 +0200
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Aug 08 18:01:18 UTC 2020 - Viewed (0) -
docs_src/body_fields/__init__.py
Motov Yurii <******@****.***> 1766745782 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - Viewed (0) -
docs_src/cookie_params/__init__.py
Motov Yurii <******@****.***> 1766745782 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - Viewed (0) -
docs_src/debugging/__init__.py
Motov Yurii <******@****.***> 1766745782 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - Viewed (0) -
docs_src/encoder/__init__.py
Motov Yurii <******@****.***> 1766745782 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - Viewed (0) -
tests/__init__.py
Sebastián Ramírez <******@****.***> 1544255767 +0400
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 08 07:56:07 UTC 2018 - Viewed (0) -
tests/test_tutorial/test_additional_responses/__init__.py
Sebastián Ramírez <******@****.***> 1554458040 +0400
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Apr 05 09:54:00 UTC 2019 - Viewed (0)