- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 174 for __exit__ (0.06 sec)
-
fastapi/concurrency.py
async def contextmanager_in_threadpool( cm: ContextManager[_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 Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Dec 25 17:57:35 UTC 2023 - 1.4K bytes - Viewed (0) -
docs_src/dependencies/tutorial010.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 Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 292 bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
🚥 👆 ▶️ ⏮️ **FastAPI** 👆 💪 💚 🚶 ⚫️ 🔜. /// 🐍, 👆 💪 ✍ 🔑 👨💼 <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">🏗 🎓 ⏮️ 2️⃣ 👩🔬: `__enter__()` & `__exit__()`</a>. 👆 💪 ⚙️ 👫 🔘 **FastAPI** 🔗 ⏮️ `yield` ⚙️ `with` ⚖️ `async with` 📄 🔘 🔗 🔢: ```Python hl_lines="1-9 13" {!../../docs_src/dependencies/tutorial010.py!} ``` /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/api_template.__init__.py
sub-modules, as described below. Note that the file `__init__.py` in the TensorFlow source code tree is actually only a placeholder to enable test cases to run. The TensorFlow build replaces this file with a file generated from [`api_template.__init__.py`](https://www.github.com/tensorflow/tensorflow/blob/master/tensorflow/api_template.__init__.py) """ # pylint: disable=g-bad-import-order,protected-access,g-import-not-at-top
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Oct 02 22:16:02 UTC 2024 - 6.8K bytes - Viewed (0) -
docs/sts/client_grants/__init__.py
implementation to be used with boto_session """ METHOD = 'assume-role-client-grants' CANONICAL_NAME = 'AssumeRoleClientGrants' def __init__(self, cid, csec, idp_ep='http://localhost:8080/auth/realms/minio/protocol/openid-connect/token', sts_ep='http://localhost:9000'): self.cid = cid self.csec = csec
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 4.6K bytes - Viewed (0) -
tests/__init__.py
Sebastián Ramírez <******@****.***> 1544255767 +0400
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Dec 08 07:56:07 UTC 2018 - Viewed (0) -
tests/test_tutorial/test_body_updates/__init__.py
Sebastián Ramírez <******@****.***> 1558958893 +0400
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 27 12:08:13 UTC 2019 - Viewed (0) -
tests/test_tutorial/test_custom_request_and_route/__init__.py
dmontagu <******@****.***> 1570235015 -0700
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 05 00:23:34 UTC 2019 - Viewed (0) -
fastapi/middleware/__init__.py
Sebastián Ramírez <******@****.***> 1608490200 +0100
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Dec 20 18:50:00 UTC 2020 - 58 bytes - Viewed (0) -
tests/test_tutorial/test_additional_responses/__init__.py
Sebastián Ramírez <******@****.***> 1554458040 +0400
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Apr 05 09:54:00 UTC 2019 - Viewed (0)