Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 445 for Async (0.32 sec)

  1. docs/em/docs/advanced/events.md

    **🔑 👨‍💼** 🐍 🕳 👈 👆 💪 ⚙️ `with` 📄, 🖼, `open()` 💪 ⚙️ 🔑 👨‍💼:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    ⏮️ ⏬ 🐍, 📤 **🔁 🔑 👨‍💼**. 👆 🔜 ⚙️ ⚫️ ⏮️ `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    🕐❔ 👆 ✍ 🔑 👨‍💼 ⚖️ 🔁 🔑 👨‍💼 💖 🔛, ⚫️❔ ⚫️ 🔨 👈, ⏭ 🛬 `with` 🍫, ⚫️ 🔜 🛠️ 📟 ⏭ `yield`, & ⏮️ ❎ `with` 🍫, ⚫️ 🔜 🛠️ 📟 ⏮️ `yield`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/first-steps.md

    이것은 파이썬 함수입니다.
    
    URL "`/`"에 대한 `GET` 작동을 사용하는 요청을 받을 때마다 **FastAPI**에 의해 호출됩니다.
    
    위의 예시에서 이 함수는 `async`(비동기) 함수입니다.
    
    ---
    
    `async def`을 이용하는 대신 일반 함수로 정의할 수 있습니다:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | 참고
    
    차이점을 모르겠다면 [Async: *"바쁘신 경우"*](../async.md#_1){.internal-link target=_blank}을 확인하세요.
    
    ///
    
    ### 5 단계: 콘텐츠 반환
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. docs/zh-hant/docs/tutorial/first-steps.md

    這就是一個 Python 函式。
    
    它將會在 **FastAPI** 收到一個請求時被呼叫,使用 `GET` 操作。
    
    在這種情況下,它是一個 `async` 函式。
    
    ---
    
    你可以將它定義為一個正常的函式,而不是 `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py h1[7] *}
    
    /// note
    
    如果你不知道差別,請查看 [Async: *"In a hurry?"*](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    ///
    
    ### 第五步:回傳內容
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:20:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.8+
    
    ```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.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/dependencies/index.md

    이는 특히 **많은 *경로 작동***에서 **같은 의존성**을 계속해서 사용하는 **거대 코드 기반**안에서 사용하면 유용할 것입니다.
    
    ## `async`하게, 혹은 `async`하지 않게
    
    의존성이 (*경로 작동 함수*에서 처럼 똑같이) **FastAPI**에 의해 호출될 수 있으며, 함수를 정의할 때 동일한 규칙이 적용됩니다.
    
    `async def`을 사용하거나 혹은 일반적인 `def`를 사용할 수 있습니다.
    
    그리고 일반적인 `def` *경로 작동 함수* 안에 `async def`로 의존성을 선언할 수 있으며, `async def` *경로 작동 함수* 안에 `def`로 의존성을 선언하는 등의 방법이 있습니다.
    
    아무 문제 없습니다. **FastAPI**는 무엇을 할지 알고 있습니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/background-tasks.md

    Створіть функцію, яка буде виконувати фонову задачу.
    
    Це звичайна функція, яка може отримувати параметри.
    
    Вона може бути асинхронною `async def` або звичайною `def` функцією – **FastAPI** обробить її правильно.
    
    У нашому випадку функція записує у файл (імітуючи надсилання email).
    
    І оскільки операція запису не використовує `async` та `await`, ми визначаємо функцію як звичайну `def`:
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 13:34:53 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

                    }
                } else {
                    log.warn("Async notify failed: {}", message.getErrorMessage());
                }
    
                return null;
    
            } catch (Exception e) {
                throw new IOException("Witness async notify RPC failed", e);
            }
        }
    
        /**
         * Generates a registration ID from context handle and share name.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. docs/tr/docs/index.md

    <details markdown="1">
    <summary>Ya da <code>async def</code>...</summary>
    
    Eğer kodunuzda `async` / `await` varsa, `async def` kullanalım:
    
    ```Python hl_lines="9  14"
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/request_files.md

    * Você pode obter metadados do arquivo enviado.
    * Ela possui uma interface <a href="https://docs.python.org/3/glossary.html#term-file-like-object" class="external-link" target="_blank">semelhante a arquivos</a> `async`.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                byte[] buffer = new byte[256];
                System.arraycopy(SMBUtil.SMB2_HEADER, 0, buffer, 0, 4);
                // Set up async message fields
                SMBUtil.writeInt4(ServerMessageBlock2.SMB2_FLAGS_ASYNC_COMMAND, buffer, 16); // flags with async
                SMBUtil.writeInt8(789L, buffer, 32); // async ID
                SMBUtil.writeInt8(456L, buffer, 40); // session ID
                return buffer;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top