- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 1,237 for yields (0.06 seconds)
-
docs/zh-hant/docs/advanced/stream-data.md
/// tip 如果你需要在 async 函式內呼叫阻塞程式碼,或在阻塞函式中呼叫 async 函式,你可以使用 [Asyncer](https://asyncer.tiangolo.com),它是 FastAPI 的姊妹函式庫。 /// ### `yield from` { #yield-from } 當你在迭代某個物件(如類檔案物件),並對每個項目使用 `yield` 時,也可以用 `yield from` 直接逐項產出,省略 `for` 迴圈。 這不是 FastAPI 特有的功能,而是 Python 語法;不過這招很實用。 😎Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.9K bytes - Click Count (0) -
docs/ko/docs/advanced/stream-data.md
/// tip | 팁 비동기 함수 안에서 블로킹 코드를 호출해야 하거나, 반대로 블로킹 함수 안에서 비동기 함수를 호출해야 한다면 FastAPI의 형제 라이브러리인 [Asyncer](https://asyncer.tiangolo.com)를 사용할 수 있습니다. /// ### `yield from` { #yield-from } 파일 유사 객체처럼 어떤 것을 순회하면서 각 항목마다 `yield`를 하는 대신, `yield from`을 사용해 각 항목을 직접 전달하고 `for` 루프를 생략할 수 있습니다. 이는 FastAPI에 특화된 기능이 아니라 순수한 파이썬 기능이지만, 알아두면 유용한 트릭입니다. 😎Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:56:39 GMT 2026 - 6.2K bytes - Click Count (0) -
chainable_api.go
tx.Statement.Distinct = true if len(args) > 0 { tx = tx.Select(args[0], args[1:]...) } return } // Select specify fields that you want when querying, creating, updating // // Use Select when you only want a subset of the fields. By default, GORM will select all fields. // Select accepts both string arguments and arrays. // // // Select name and age of user using multiple arguments
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 14.8K bytes - Click Count (0) -
docs_src/server_sent_events/tutorial005_py310.py
@app.post("/chat/stream", response_class=EventSourceResponse) async def stream_chat(prompt: Prompt) -> AsyncIterable[ServerSentEvent]: words = prompt.text.split() for word in words: yield ServerSentEvent(data=word, event="token")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 528 bytes - Click Count (0) -
docs_src/dependencies/tutorial008_py310.py
dep_a = generate_dep_a() try: yield dep_a finally: dep_a.close() async def dependency_b(dep_a=Depends(dependency_a)): dep_b = generate_dep_b() try: yield dep_b finally: dep_b.close(dep_a) async def dependency_c(dep_b=Depends(dependency_b)): dep_c = generate_dep_c() try: yield dep_c finally:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 455 bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
/// #### Data with values for fields with defaults { #data-with-values-for-fields-with-defaults } But if your data has values for the model's fields with default values, like the item with ID `bar`: ```Python hl_lines="3 5" { "name": "Bar", "description": "The bartenders", "price": 62,Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingContext.java
public String getIndex() { return index; } /** * Returns the supported fields. * @return The supported fields. */ public String[] getSupportedFields() { return supportedFields; } /** * Returns the tag field names. * @return The tag field names. */ public String[] getTagFieldNames() { return tagFieldNames; } /**
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer); } @Test @DisplayName("Constructor should properly initialize all fields") void testConstructor() { // Verify all fields are properly initialized assertNotNull(negotiation); assertSame(mockRequest, negotiation.getRequest()); assertSame(mockResponse, negotiation.getResponse());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/SearchForm.java
* Provides form fields and methods for handling search requests in the web interface. * Contains validation constraints and convenience methods for parameter processing. */ public class SearchForm extends SearchRequestParams { /** * Map of additional search fields with their values. */ public Map<String, String[]> fields = new HashMap<>(); /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 5.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/error/ErrorForm.java
* allowing the error page to display relevant information and preserve search context. */ public class ErrorForm { /** Map of form fields and their validation error messages */ public Map<String, String[]> fields = new HashMap<>(); /** Search query parameter that caused the error */ public String q; /** URL parameter associated with the error */ public String url;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.5K bytes - Click Count (0)