- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 241 for yielded (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/fr/docs/tutorial/dependencies/dependencies-with-yield.md
/// ## Créer une dépendance de base de données avec `yield` { #a-database-dependency-with-yield } Par exemple, vous pouvez l'utiliser pour créer une session de base de données et la fermer après la fin. Seul le code précédant et incluant l'instruction `yield` est exécuté avant la création de la réponse : {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 13.9K bytes - Click Count (0) -
docs/es/docs/tutorial/dependencies/dependencies-with-yield.md
FastAPI admite dependencias que realizan algunos <dfn title='a veces también llamado "código de salida", "código de limpieza", "código de teardown", "código de cierre", "código de salida del context manager", etc.'>pasos adicionales después de finalizar</dfn>. Para hacer esto, usa `yield` en lugar de `return`, y escribe los pasos adicionales (código) después. /// tip | Consejo
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 13.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md
事實上,FastAPI 內部就是使用這兩個裝飾器。 /// ## 使用 `yield` 的資料庫相依 { #a-database-dependency-with-yield } 例如,你可以用它建立一個資料庫 session,並在完成後關閉。 只有 `yield` 之前(含 `yield` 本身)的程式碼會在產生回應之前執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 由 `yield` 產生的值會被注入到路徑操作(path operation)與其他相依中: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} 位於 `yield` 之後的程式碼會在回應之後執行:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/tr/docs/tutorial/dependencies/dependencies-with-yield.md
# `yield` ile Dependency'ler { #dependencies-with-yield } FastAPI, işini bitirdikten sonra <dfn title='bazen "exit code", "cleanup code", "teardown code", "closing code", "context manager exit code" vb. olarak da adlandırılır'>ek adımlar</dfn> çalıştıran dependency'leri destekler. Bunu yapmak için `return` yerine `yield` kullanın ve ek adımları (kodu) `yield` satırından sonra yazın. /// tip | İpucu
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 13.4K bytes - Click Count (0) -
docs/uk/docs/tutorial/dependencies/dependencies-with-yield.md
# Залежності з yield { #dependencies-with-yield } FastAPI підтримує залежності, які виконують деякі <dfn title='інколи також називається «код виходу», «код очищення», «код завершення», «код закриття», «код виходу менеджера контексту» тощо'>додаткові кроки після завершення</dfn>. Щоб це зробити, використовуйте `yield` замість `return` і напишіть додаткові кроки (код) після нього. /// tip | ПорадаCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 18.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
Note over dep_req: Run code after yield Note over dep_req: ✅ Dependency closed ``` ## 包含 `yield`、`HTTPException`、`except` 和后台任务的依赖项 { #dependencies-with-yield-httpexception-except-and-background-tasks } 带有 `yield` 的依赖项随着时间演进以涵盖不同的用例并修复了一些问题。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 12.1K bytes - Click Count (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
実際、FastAPIは内部的にこれら2つのデコレータを使用しています。 /// ## `yield`を持つデータベースの依存関係 { #a-database-dependency-with-yield } 例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。 レスポンスを作成する前に、`yield`文より前のコード(および`yield`文を含む)が実行されます: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 生成された値は、*path operations*や他の依存関係に注入されるものです: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield`文に続くコードは、レスポンスの後に実行されます:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 15.4K bytes - Click Count (0) -
docs/de/docs/tutorial/server-sent-events.md
## SSE mit FastAPI streamen { #stream-sse-with-fastapi } Um SSE mit FastAPI zu streamen, verwenden Sie `yield` in Ihrer *Pfadoperation-Funktion* und setzen Sie `response_class=EventSourceResponse`. Importieren Sie `EventSourceResponse` aus `fastapi.sse`: {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *} Jedes mit `yield` zurückgegebene Element wird als JSON kodiert und im Feld `data:` eines SSE-Events gesendet.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:48:21 GMT 2026 - 5.1K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
* Runs a [TaskRunner] in a controlled environment so that everything is sequential and * deterministic. * * This class ensures that at most one thread is running at a time. This is initially the JUnit test * thread, which yields its execution privilege while calling [runTasks], [runNextTask], or * [advanceUntil]. These functions don't return until the task threads are all idle. * * Task threads release their execution privilege in these ways: *
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/Dispatcher.java
* all subscribers in the order they are posted. * * <p>When all subscribers are dispatched to using a <i>direct</i> executor (which dispatches on * the same thread that posts the event), this yields a breadth-first dispatch order on each * thread. That is, all subscribers to a single event A will be called before any subscribers to * any events B and C that are posted to the event bus by the subscribers to A. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.4K bytes - Click Count (0)