Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 651 - 660 of 1,031 for wait (0.03 seconds)

  1. docs/es/docs/advanced/stream-data.md

    ### Archivos y async { #files-and-async }
    
    En la mayoría de los casos, los objetos tipo archivo no son compatibles con `async` y `await` por defecto.
    
    Por ejemplo, no tienen un `await file.read()`, ni un `async for chunk in file`.
    
    Y en muchos casos leerlos sería una operación bloqueante (que podría bloquear el event loop), porque se leen desde disco o desde la red.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  2. docs/de/docs/advanced/async-tests.md

    Dann können wir einen `AsyncClient` mit der App erstellen und mit `await` asynchrone Requests an ihn senden.
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *}
    
    Das ist das Äquivalent zu:
    
    ```Python
    response = client.get('/')
    ```
    
    ... welches wir verwendet haben, um unsere Requests mit dem `TestClient` zu machen.
    
    /// tip | Tipp
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 4.3K bytes
    - Click Count (1)
  3. internal/config/storageclass/storage-class_test.go

    	tests := []struct {
    		sc   string
    		want bool
    	}{
    		{"STANDARD", true},
    		{"REDUCED_REDUNDANCY", true},
    		{"", false},
    		{"INVALID", false},
    		{"123", false},
    		{"MINIO_STORAGE_CLASS_RRS", false},
    		{"MINIO_STORAGE_CLASS_STANDARD", false},
    	}
    	for i, tt := range tests {
    		if got := IsValid(tt.sc); got != tt.want {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 4.3K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/stream-data.md

    # Stream Data { #stream-data }
    
    If you want to stream data that can be structured as JSON, you should [Stream JSON Lines](../tutorial/stream-json-lines.md).
    
    But if you want to **stream pure binary data** or strings, here's how you can do it.
    
    /// info
    
    Added in FastAPI 0.134.0.
    
    ///
    
    ## Use Cases { #use-cases }
    
    You could use this if you want to stream pure strings, for example directly from the output of an **AI LLM** service.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/references/other-tools.md

    app = FastAPI()
    
    
    def do_blocking_work(name: str) -> str:
        # Some blocking I/O operation
        return f"Hello {name}"
    
    
    @app.get("/items/")
    async def read_items():
        result = await asyncify(do_blocking_work)(name="World")
        return {"message": result}
    ```
    
    And run async code inside of blocking sync code with `syncify()`:
    
    ```python
    from asyncer import syncify
    from fastapi import FastAPI
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  6. futures/listenablefuture1/pom.xml

        "version" that omits the class to avoid conflicts with the copy in Guava
        itself. The idea is:
    
        - If users want only ListenableFuture, they depend on listenablefuture-1.0.
    
        - If users want all of Guava, they depend on guava, which, as of Guava
        27.0, depends on
        listenablefuture-9999.0-empty-to-avoid-conflict-with-guava. The 9999.0-...
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 19:27:26 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. docs/pt/docs/advanced/stream-data.md

    ### Arquivos e async { #files-and-async }
    
    Na maioria dos casos, objetos semelhantes a arquivo não são compatíveis com async e await por padrão.
    
    Por exemplo, eles não têm `await file.read()`, nem `async for chunk in file`.
    
    E, em muitos casos, lê-los seria uma operação bloqueante (que poderia bloquear o loop de eventos), pois são lidos do disco ou da rede.
    
    /// info | Informação
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  8. src/cmd/asm/internal/asm/line_test.go

    		err := tryParse(t, func() {
    			parser.Parse()
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("#%d: %q: want error %q; have none", i, test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    			t.Errorf("#%d: %q: want error %q; have %q", i, test.input, test.error, err)
    		}
    	}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  9. docs/uk/docs/advanced/websockets.md

    **FastAPI** надає той самий `WebSocket` напряму як зручність для вас, розробника. Але він походить безпосередньо зі Starlette.
    
    ///
    
    ## Очікуйте повідомлення та надсилайте повідомлення { #await-for-messages-and-send-messages }
    
    У вашому маршруті WebSocket ви можете `await` повідомлення і надсилати повідомлення.
    
    {* ../../docs_src/websockets_/tutorial001_py310.py hl[48:52] *}
    
    Ви можете отримувати та надсилати бінарні, текстові та JSON-дані.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  10. docs/de/docs/tutorial/request-files.md

    * `seek(versatz)`: Geht zur Position `versatz` (`int`) in der Datei.
        * z. B. würde `await myfile.seek(0)` zum Anfang der Datei gehen.
        * Das ist besonders dann nützlich, wenn Sie `await myfile.read()` einmal ausführen und dann diese Inhalte erneut auslesen müssen.
    * `close()`: Schließt die Datei.
    
    Da alle diese Methoden `async`hron sind, müssen Sie sie „await“en („erwarten“).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 8.3K bytes
    - Click Count (0)
Back to Top