Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 153 for aurait (0.04 seconds)

  1. docs/uk/docs/advanced/async-tests.md

    {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *}
    
    Це еквівалентно:
    
    ```Python
    response = client.get('/')
    ```
    
    ...що ми раніше використовували для надсилання запитів за допомогою `TestClient`.
    
    /// tip | Порада
    
    Зауважте, що ми використовуємо async/await із новим `AsyncClient` - запит є асинхронним.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  2. docs/fr/docs/tutorial/server-sent-events.md

    FastAPI s’assure qu’elles s’exécutent correctement pour ne pas bloquer la boucle d’événements.
    
    Dans ce cas la fonction n’est pas async, le type de retour approprié serait `Iterable[Item]` :
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}
    
    ### Sans type de retour { #no-return-type }
    
    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)
  3. tests/test_list_bytes_file_order_preserved_issue_14811.py

        async def patched_read(self: StarletteUploadFile, size: int = -1) -> bytes:
            # Make the FIRST file slower *deterministically*
            if self.filename == "slow.txt":
                await anyio.sleep(0.05)
            return await original_read(self, size)
    
        monkeypatch.setattr(StarletteUploadFile, "read", patched_read)
    
        client = TestClient(app)
    
        files = [
            ("files", ("slow.txt", b"A" * 10, "text/plain")),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 10 12:14:38 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  4. docs/fr/docs/advanced/openapi-callbacks.md

    ## Une application avec des callbacks { #an-app-with-callbacks }
    
    Voyons tout cela avec un exemple.
    
    Imaginez que vous développiez une application qui permet de créer des factures.
    
    Ces factures auront un `id`, un `title` (facultatif), un `customer` et un `total`.
    
    L’utilisateur de votre API (une personne développeuse externe) créera une facture dans votre API avec une requête POST.
    
    Ensuite votre API va (imaginons) :
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

                            // WAIT #1
                            barrier.await(1, SECONDS);
    
                            // WAIT #2
                            barrier.await(1, SECONDS);
                            assertTrue(executor.isShutdown());
                            assertFalse(executor.isTerminated());
    
                            // WAIT #3
                            barrier.await(1, SECONDS);
                            return null;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  6. docs/pt/docs/advanced/async-tests.md

    {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *}
    
    Isso é equivalente a:
    
    ```Python
    response = client.get('/')
    ```
    
    ...que nós utilizamos para fazer as nossas requisições utilizando o `TestClient`.
    
    /// tip | Dica
    
    Note que nós estamos utilizando async/await com o novo `AsyncClient` - a requisição é assíncrona.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/middleware.md

    * Enfin, il renvoie la **réponse**.
    
    /// note | Détails techniques
    
    Si vous avez des dépendances avec `yield`, le code de sortie s’exécutera après le middleware.
    
    S’il y avait des tâches d’arrière-plan (présentées dans la section [Tâches d’arrière-plan](background-tasks.md), que vous verrez plus tard), elles s’exécuteront après tous les middlewares.
    
    ///
    
    ## Créer un middleware { #create-a-middleware }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                });
    
                longRunningThread.start();
                startLatch.await();
    
                // Check active requests
                assertEquals(1, cbWithTracking.getActiveRequests(), "Should have 1 active request");
    
                // Complete the operation
                holdLatch.countDown();
                completeLatch.await();
                longRunningThread.join();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/request-files.md

    * `seek(offset)`: Goes to the byte position `offset` (`int`) in the file.
        * E.g., `await myfile.seek(0)` would go to the start of the file.
        * This is especially useful if you run `await myfile.read()` once and then need to read the contents again.
    * `close()`: Closes the file.
    
    As all these methods are `async` methods, you need to "await" them.
    
    For example, inside of an `async` *path operation function* you can get the contents with:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/advanced/async-tests.md

    注意,測試函式現在是 `async def`,而不是像使用 `TestClient` 時那樣僅用 `def`。
    
    ///
    
    接著,我們可以用該應用建立 `AsyncClient`,並以 `await` 發送非同步請求。
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *}
    
    這等同於:
    
    ```Python
    response = client.get('/')
    ```
    
    也就是先前用 `TestClient` 發送請求時所用的寫法。
    
    /// tip
    
    注意,對新的 `AsyncClient` 需搭配 async/await —— 請求是非同步的。
    
    ///
    
    /// warning
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.5K bytes
    - Click Count (0)
Back to Top