Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 1,598 for yield (0.02 seconds)

  1. docs/fr/docs/tutorial/server-sent-events.md

    Pour diffuser des SSE avec FastAPI, utilisez `yield` dans votre *fonction de chemin d'accès* et définissez `response_class=EventSourceResponse`.
    
    Importez `EventSourceResponse` depuis `fastapi.sse` :
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Chaque élément produit avec `yield` est encodé en JSON et envoyé dans le champ `data:` d’un événement SSE.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. docs/ru/docs/tutorial/middleware.md

    * Получает **ответ** (от *операции пути*).
    * Может что-то сделать с этим **ответом** или выполнить любой нужный код.
    * И возвращает **ответ**.
    
    /// note | Технические детали
    
    Если у вас есть зависимости с `yield`, то код выхода (код после `yield`) будет выполняться *после* middleware.
    
    Если были какие‑либо фоновые задачи (рассматриваются в разделе [Фоновые задачи](background-tasks.md), вы увидите это позже), они будут запущены *после* всех middleware.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/stream-json-lines.md

    ///
    
    ## Стриминг JSON Lines с FastAPI { #stream-json-lines-with-fastapi }
    
    Чтобы стримить JSON Lines с FastAPI, вместо использования `return` в вашей *функции-обработчике пути* используйте `yield`, чтобы по очереди выдавать каждый элемент.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  4. docs/uk/docs/tutorial/stream-json-lines.md

    ///
    
    ## Стрімінг JSON Lines з FastAPI { #stream-json-lines-with-fastapi }
    
    Щоб стрімити JSON Lines з FastAPI, замість використання `return` у вашій *функції операції шляху* використовуйте `yield`, щоб по черзі створювати кожен елемент.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  5. docs_src/dependencies/tutorial007_py310.py

    async def get_db():
        db = DBSession()
        try:
            yield db
        finally:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 99 bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/server-sent-events.md

    ///
    
    ## Transmitir SSE com FastAPI { #stream-sse-with-fastapi }
    
    Para transmitir SSE com FastAPI, use `yield` na sua função de operação de rota e defina `response_class=EventSourceResponse`.
    
    Importe `EventSourceResponse` de `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. fastapi/applications.py

                    # Before this was also used for closing dependencies with yield but
                    # those now have their own AsyncExitStack, to properly support
                    # streaming responses while keeping compatibility with the previous
                    # versions (as of writing 0.117.1) that allowed doing
                    # except HTTPException inside a dependency with yield.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/FakeRoutePlanner.kt

        }
        val result = plans[nextPlanIndex++]
        events += "take plan ${result.id}"
    
        if (result.yieldBeforePlanReturns) {
          taskFaker.yield()
        }
    
        val planningThrowable = result.planningThrowable
        if (planningThrowable != null) throw planningThrowable
    
        return result
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  9. docs/tr/docs/tutorial/stream-json-lines.md

    ///
    
    ## FastAPI ile JSON Lines Akışı { #stream-json-lines-with-fastapi }
    
    FastAPI ile JSON Lines akışı yapmak için, *path operation function* içinde `return` kullanmak yerine, her öğeyi sırayla üretmek için `yield` kullanabilirsiniz.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:51:35 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/stream-json-lines.md

    ///
    
    ## Stream de JSON Lines com FastAPI { #stream-json-lines-with-fastapi }
    
    Para transmitir JSON Lines com FastAPI, em vez de usar `return` na sua *função de operação de rota*, use `yield` para produzir cada item em sequência.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 4.6K bytes
    - Click Count (0)
Back to Top