Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 631 - 640 of 1,104 for Async (0.05 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            () -> {
              AbstractFuture<String> future = setFutureFuture.get();
              setFutureSetSuccess.set(currentFuture.get().setFuture(future));
              setFutureCompletionSuccess.set(future.set("hello-async-world"));
              awaitUnchecked(barrier);
            };
        Set<Object> finalResults = Collections.synchronizedSet(Sets.newIdentityHashSet());
        Runnable collectResultsRunnable =
            () -> {
              try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.10+ sin Anotaciones
    
    /// tip | Consejo
    
    Prefiere usar la versión `Annotated` si es posible.
    
    ///
    
    ```Python hl_lines="1"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:41:41 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/server-sent-events.md

    ///
    
    ### Несинхронные функции-обработчики пути { #non-async-path-operation-functions }
    
    Вы также можете использовать обычные функции `def` (без `async`) и применять `yield` тем же образом.
    
    FastAPI проследит, чтобы выполнение прошло корректно и не блокировало цикл событий.
    
    Так как в этом случае функция не async, правильным типом возврата будет `Iterable[Item]`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  4. docs_src/path_operation_advanced_configuration/tutorial005_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"})
    async def read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 180 bytes
    - Click Count (0)
  5. docs_src/query_params_str_validations/tutorial013_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: list = Query(default=[])):
        query_items = {"q": q}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 175 bytes
    - Click Count (0)
  6. docs_src/query_params_str_validations/tutorial011_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: list[str] | None = Query(default=None)):
        query_items = {"q": q}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 189 bytes
    - Click Count (0)
  7. docs_src/header_params/tutorial003_py310.py

    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(x_token: list[str] | None = Header(default=None)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 186 bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/testing.md

    ///
    
    /// tip | Astuce
    
    Si vous souhaitez appeler des fonctions `async` dans vos tests en dehors de l’envoi de requêtes à votre application FastAPI (par exemple des fonctions de base de données asynchrones), consultez les [Tests asynchrones](../advanced/async-tests.md) dans le tutoriel avancé.
    
    ///
    
    ## Séparer les tests { #separating-tests }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  9. docs/tr/docs/tutorial/background-tasks.md

    Arka plan görevi olarak çalıştırılacak bir fonksiyon oluşturun.
    
    Bu, parametre alabilen standart bir fonksiyondur.
    
    `async def` de olabilir, normal `def` de olabilir; **FastAPI** bunu doğru şekilde nasıl ele alacağını bilir.
    
    Bu örnekte görev fonksiyonu bir dosyaya yazacaktır (email göndermeyi simüle ediyor).
    
    Ve yazma işlemi `async` ve `await` kullanmadığı için fonksiyonu normal `def` ile tanımlarız:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. docs_src/query_params/tutorial002_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str, q: str | None = None):
        if q:
            return {"item_id": item_id, "q": q}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 219 bytes
    - Click Count (0)
Back to Top