Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 801 - 810 of 1,031 for wait (0.02 seconds)

  1. docs/zh/docs/tutorial/background-tasks.md

    ## 创建一个任务函数 { #create-a-task-function }
    
    创建要作为后台任务运行的函数。
    
    它只是一个可以接收参数的标准函数。
    
    它可以是 `async def` 或普通的 `def` 函数,**FastAPI** 知道如何正确处理。
    
    在这种情况下,任务函数将写入一个文件(模拟发送电子邮件)。
    
    由于写操作不使用 `async` 和 `await`,我们用普通的 `def` 定义函数:
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *}
    
    ## 添加后台任务 { #add-the-background-task }
    
    在你的 *路径操作函数* 里,用 `.add_task()` 方法将任务函数传到 *后台任务* 对象中:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *}
    
    /// tip
    
    Notice that the testing functions are normal `def`, not `async def`.
    
    And the calls to the client are also normal calls, not using `await`.
    
    This allows you to use `pytest` directly without complications.
    
    ///
    
    /// note | Technical Details
    
    You could also use `from starlette.testclient import TestClient`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. docs/ko/docs/advanced/dataclasses.md

    8. 이 *경로 처리 함수*는 `async def` 대신 일반 `def`를 사용하고 있다는 점에 주목하세요.
    
        언제나처럼 FastAPI에서는 필요에 따라 `def`와 `async def`를 조합해 사용할 수 있습니다.
    
        어떤 것을 언제 사용해야 하는지 다시 확인하고 싶다면, [`async`와 `await`](../async.md#in-a-hurry) 문서의 _"급하신가요?"_ 섹션을 확인하세요.
    
    9. 이 *경로 처리 함수*는 dataclasses를(물론 반환할 수도 있지만) 반환하지 않고, 내부 데이터를 담은 딕셔너리들의 리스트를 반환합니다.
    
        FastAPI는 `response_model` 매개변수(dataclasses 포함)를 사용해 응답을 변환합니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/net/HttpHeadersTest.java

        for (Field field : HttpHeaders.class.getDeclaredFields()) {
          /*
           * Coverage mode generates synthetic fields.  If we ever add private
           * fields, they will cause similar problems, and we may want to switch
           * this check to isAccessible().
           */
          if (!field.isSynthetic() && field.getType() == String.class) {
            builder.add(field);
          }
        }
        return builder.build();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:10:09 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalPluginBuildPlugin.java

            // We've ported this from multiple build scripts where we see this pattern into
            // an extension method as a first step of consolidation.
            // We might want to port this into a general pattern later on.
            project.getExtensions()
                .getExtraProperties()
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5K bytes
    - Click Count (0)
  6. docs/fr/docs/deployment/concepts.md

    # Concepts de déploiement { #deployments-concepts }
    
    Lorsque vous déployez une application **FastAPI**, ou en fait n'importe quel type de web API, il existe plusieurs concepts qui vous importent probablement, et en les utilisant vous pouvez trouver la manière la **plus appropriée** de **déployer votre application**.
    
    Parmi les concepts importants, on trouve :
    
    * Sécurité - HTTPS
    * Exécuter au démarrage
    * Redémarrages
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/cors.md

    # CORS (Partage des ressources entre origines) { #cors-cross-origin-resource-sharing }
    
    [CORS ou « Cross-Origin Resource Sharing »](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) fait référence aux situations où un frontend exécuté dans un navigateur contient du code JavaScript qui communique avec un backend, et où le backend se trouve dans une « origine » différente de celle du frontend.
    
    ## Origine { #origin }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *}
    
    /// tip | Dica
    
    Observe que as funções de teste são `def` normais, não `async def`.
    
    E as chamadas para o cliente também são chamadas normais, não usando `await`.
    
    Isso permite que você use `pytest` diretamente sem complicações.
    
    ///
    
    /// note | Detalhes Técnicos
    
    Você também pode usar `from starlette.testclient import TestClient`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/tutorial/background-tasks.md

    ## 建立任務函式 { #create-a-task-function }
    
    建立一個作為背景任務執行的函式。
    
    它只是個可接收參數的一般函式。
    
    它可以是 `async def`,也可以是一般的 `def`,**FastAPI** 都能正確處理。
    
    在此例中,任務函式會寫入檔案(模擬寄送電子郵件)。
    
    由於寫入操作未使用 `async` 與 `await`,因此以一般的 `def` 定義該函式:
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *}
    
    ## 新增背景任務 { #add-the-background-task }
    
    在路徑操作函式內,使用 `.add_task()` 將任務函式加入背景任務物件:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  10. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * </ul>
     *
     * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code
     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
     * equals implementation is *not* short-circuiting to prevent timing-based attacks. Being fast is
     * only a secondary goal.
     *
     * @author Kurt Alfred Kluever
     */
    @NullUnmarked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top