Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 760 for asyncio (0.03 sec)

  1. docs/en/docs/alternatives.md

    It was one of the first extremely fast Python frameworks based on `asyncio`. It was made to be very similar to Flask.
    
    /// note | Technical Details
    
    It used <a href="https://github.com/MagicStack/uvloop" class="external-link" target="_blank">`uvloop`</a> instead of the default Python `asyncio` loop. That's what made it so fast.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  2. docs/de/docs/async.md

    Gleichzeitig müssen aber mit `async def` definierte Funktionen „erwartet“ („awaited“) werden. Daher können Funktionen mit `async def` nur innerhalb von Funktionen aufgerufen werden, die auch mit `async def` definiert sind.
    
    Daraus resultiert das Ei-und-Huhn-Problem: Wie ruft man die erste `async` Funktion auf?
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 27.9K bytes
    - Viewed (0)
  3. docs/en/docs/async.md

    ### Other forms of asynchronous code { #other-forms-of-asynchronous-code }
    
    This style of using `async` and `await` is relatively new in the language.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. docs/zh/docs/deployment/manually.md

    ```console
    $ pip install "uvicorn[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    类似的流程也适用于任何其他 ASGI 服务器程序。
    
    /// tip
    
    通过添加 `standard` 选项,Uvicorn 将安装并使用一些推荐的额外依赖项。
    
    其中包括 `uvloop`,这是 `asyncio` 的高性能替代方案,能够显著提升并发性能。
    
    当您使用 `pip install "fastapi[standard]"` 安装 FastAPI 时,实际上也会安装 `uvicorn[standard]`。
    
    ///
    
    ## 运行服务器程序
    
    如果您手动安装了 ASGI 服务器,通常需要以特定格式传递一个导入字符串,以便服务器能够正确导入您的 FastAPI 应用:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  5. docs/zh/docs/async.md

        return burgers
    ```
    
    ### 更多技术细节
    
    你可能已经注意到,`await` 只能在 `async def` 定义的函数内部使用。
    
    但与此同时,必须"等待"通过 `async def` 定义的函数。因此,带 `async def` 的函数也只能在 `async def` 定义的函数内部调用。
    
    那么,这关于先有鸡还是先有蛋的问题,如何调用第一个 `async` 函数?
    
    如果你使用 **FastAPI**,你不必担心这一点,因为"第一个"函数将是你的路径操作函数,FastAPI 将知道如何做正确的事情。
    
    但如果你想在没有 FastAPI 的情况下使用 `async` / `await`,则可以这样做。
    
    ### 编写自己的异步代码
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. docs/fr/docs/alternatives.md

    C'était l'un des premiers frameworks Python extrêmement rapides basés sur `asyncio`. Il a été conçu pour être très similaire à Flask.
    
    /// note | Détails techniques
    
    Il utilisait <a href="https://github.com/MagicStack/uvloop" class="external-link" target="_blank">`uvloop`</a> au lieu du système par défaut de Python `asyncio`. C'est ce qui l'a rendu si rapide.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  7. docs/zh-hant/docs/async.md

    async def read_burgers():
        burgers = await get_burgers(2)
        return burgers
    ```
    
    ### 更多技術細節
    
    你可能已經注意到,`await` 只能在 `async def` 定義的函式內使用。
    
    但同時,使用 `async def` 定義的函式本身也必須被「等待」。所以,帶有 `async def` 函式只能在其他使用 `async def` 定義的函式內呼叫。
    
    那麼,這就像「先有雞還是先有蛋」的問題,要如何呼叫第一個 `async` 函式呢?
    
    如果你使用 FastAPI,無需擔心這個問題,因為「第一個」函式將是你的*路徑操作函式*,FastAPI 會知道如何正確處理這個問題。
    
    但如果你想在沒有 FastAPI 的情況下使用 `async` / `await`,你也可以這樣做。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  8. docs/tr/docs/async.md

    `await` in yalnızca `async def` ile tanımlanan fonksıyonların içinde kullanılabileceğini fark etmişsinizdir.
    
    Ama aynı zamanda, `async def` ile tanımlanan fonksiyonların "await" ile beklenmesi gerekir. Bu nedenle, "`async def` içeren fonksiyonlar yalnızca "`async def` ile tanımlanan fonksiyonların içinde çağrılabilir.
    
    
    Yani yumurta mı tavukdan, tavuk mu yumurtadan gibi ilk `async` fonksiyonu nasıl çağırılır?
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  9. docs/ko/docs/async.md

    ```Python hl_lines="2-3"
    @app.get('/burgers')
    async def read_burgers():
        burgers = await get_burgers(2)
        return burgers
    ```
    
    ### 더 세부적인 기술적 사항
    
    `await`가 `async def`를 사용하는 함수 내부에서만 사용이 가능하다는 것을 눈치채셨을 것입니다.
    
    하지만 동시에, `async def`로 정의된 함수들은 "대기"되어야만 합니다. 따라서, `async def`를 사용한 함수들은 역시 `async def`를 사용한 함수 내부에서만 호출될 수 있습니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  10. docs/de/docs/alternatives.md

    Es war eines der ersten extrem schnellen Python-Frameworks, welches auf `asyncio` basierte. Es wurde so gestaltet, dass es Flask sehr ähnlich ist.
    
    /// note | Technische Details
    
    Es verwendete <a href="https://github.com/MagicStack/uvloop" class="external-link" target="_blank">`uvloop`</a> anstelle der standardmäßigen Python-`asyncio`-Schleife. Das hat es so schnell gemacht.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 27.4K bytes
    - Viewed (0)
Back to top