- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,100 for yield (0.04 sec)
-
src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java
yield webConfigService.getWebConfig(id).get(); } case FILE -> { final FileConfigService fileConfigService = ComponentUtil.getComponent(FileConfigService.class); yield fileConfigService.getFileConfig(id).get(); } case DATA -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 11.7K bytes - Viewed (0) -
docs_src/dependencies/tutorial007.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 99 bytes - Viewed (0) -
docs_src/dependencies/tutorial010.py
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/sql-databases.md
👥 🚮 🏗 `SessionLocal()` & 🚚 📨 `try` 🍫. & ⤴️ 👥 🔐 ⚫️ `finally` 🍫. 👉 🌌 👥 ⚒ 💭 💽 🎉 🕧 📪 ⏮️ 📨. 🚥 📤 ⚠ ⏪ 🏭 📨. ✋️ 👆 💪 🚫 🤚 ➕1️⃣ ⚠ ⚪️➡️ 🚪 📟 (⏮️ `yield`). 👀 🌖 [🔗 ⏮️ `yield` & `HTTPException`](dependencies/dependencies-with-yield.md#yield-httpexception){.internal-link target=_blank} /// & ⤴️, 🕐❔ ⚙️ 🔗 *➡ 🛠️ 🔢*, 👥 📣 ⚫️ ⏮️ 🆎 `Session` 👥 🗄 🔗 ⚪️➡️ 🇸🇲.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 25K bytes - Viewed (0) -
docs_src/events/tutorial003.py
return x * 42 ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 07 15:46:00 UTC 2023 - 569 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_an_py39.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 734 bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
/// info 我们将`SessionLocal()`请求的创建和处理放在一个`try`块中。 然后我们在finally块中关闭它。 通过这种方式,我们确保数据库会话在请求后始终关闭。即使在处理请求时出现异常。 但是您不能从退出代码中引发另一个异常(在yield之后)。可以查阅 [Dependencies with yield and HTTPException](https://fastapi.tiangolo.com/zh/tutorial/dependencies/dependencies-with-yield/#dependencies-with-yield-and-httpexception) /// *然后,当在路径操作函数*中使用依赖项时,我们使用`Session`,直接从 SQLAlchemy 导入的类型声明它。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 27.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashFunction.java
* always returns zero could be called a hash function. It is not.) * </ul> * * <p>Summarizing the last two points: "equal yield equal <i>always</i>; unequal yield unequal * <i>often</i>." This is the most important characteristic of all hash functions. * * <h3>Desirable properties</h3> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashFunction.java
* always returns zero could be called a hash function. It is not.) * </ul> * * <p>Summarizing the last two points: "equal yield equal <i>always</i>; unequal yield unequal * <i>often</i>." This is the most important characteristic of all hash functions. * * <h3>Desirable properties</h3> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
docs_src/sql_databases/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class Hero(SQLModel, table=True): id: Union[int, None] = Field(default=None, primary_key=True) name: str = Field(index=True) age: Union[int, None] = Field(default=None, index=True) secret_name: str sqlite_file_name = "database.db"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 1.7K bytes - Viewed (0)