Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for geturl (0.15 sec)

  1. docs/en/docs/async.md

    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Do some asynchronous stuff to create the burgers
        return burgers
    ```
    
    ...instead of `def`:
    
    ```Python hl_lines="2"
    # This is not asynchronous
    def get_sequential_burgers(number: int):
        # Do some sequential stuff to create the burgers
        return burgers
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  2. docs/ko/docs/async.md

        results = await some_library()
        return results
    ```
    
    !!! note "참고"
        `async def`로 생성된 함수 내부에서만 `await`를 사용할 수 있습니다.
    
    ---
    
    데이터베이스, API, 파일시스템 등과 의사소통하는 제3의 라이브러리를 사용하고, 그것이 `await`를 지원하지 않는 경우(현재 거의 모든 데이터베이스 라이브러리가 그러합니다), *경로 작동 함수*를 일반적인 `def`를 사용해 선언하십시오:
    
    ```Python hl_lines="2"
    @app.get('/')
    def results():
        results = some_library()
        return results
    ```
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 26.7K bytes
    - Viewed (0)
  3. docs/pt/docs/async.md

    async def get_burgers(number: int):
        # Fazer alguma coisa assíncrona para criar os hambúrgueres
        return burgers
    ```
    
    ...ao invés de `def`:
    
    ```Python hl_lines="2"
    # Isso não é assíncrono
    def get_sequential_burgers(number: int):
        # Faz alguma coisa sequencial para criar os hambúrgueres
        return burgers
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  4. docs/fr/docs/async.md

    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Opérations asynchrones pour créer les burgers
        return burgers
    ```
    
    ...et non `def` :
    
    ```Python hl_lines="2"
    # Ceci n'est pas asynchrone
    def get_sequential_burgers(number: int):
        # Opérations asynchrones pour créer les burgers
        return burgers
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. docs/ja/docs/async.md

        results = await some_library()
        return results
    ```
    
    !!! note "備考"
        `async def` を使用して作成された関数の内部でしか `await` は使用できません。
    
    ---
    
    データベース、API、ファイルシステムなどと通信し、`await` の使用をサポートしていないサードパーティライブラリ (現在のほとんどのデータベースライブラリに当てはまります) を使用している場合、次の様に、単に `def` を使用して通常通り *path operation 関数* を宣言してください:
    
    ```Python hl_lines="2"
    @app.get('/')
    def results():
        results = some_library()
        return results
    ```
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.8K bytes
    - Viewed (0)
Back to top