Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 445 for Async (0.19 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

    ## To `async` or not to `async` { #to-async-or-not-to-async }
    
    As dependencies will also be called by **FastAPI** (the same as your *path operation functions*), the same rules apply while defining your functions.
    
    You can use `async def` or normal `def`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            assertEquals(asyncId, request.getAsyncId());
            assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set when asyncId is non-zero");
        }
    
        @Test
        @DisplayName("Test constructor with zero asyncId does not set async flag")
        void testConstructorWithZeroAsyncId() {
            // Given
            long mid = 12345L;
            long asyncId = 0L;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    Nas versões mais recentes de Python, há também um **gerenciador de contexto assíncrono**. Você o usaria com `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/index.md

    ## Использовать `async` или не `async`
    
    Для зависимостей, вызванных **FastAPI** (то же самое, что и ваши *функции обработки пути*), те же правила, что приняты для определения ваших функций.
    
    Вы можете использовать `async def` или обычное `def`.
    
    Вы также можете объявить зависимости с `async def` внутри обычной `def` *функции обработки пути*, или `def` зависимости внутри `async def` *функции обработки пути*, и так далее.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 14.7K bytes
    - Viewed (1)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                    throw new RuntimeException(e);
                }
            }
    
            @Override
            public boolean isAsync() {
                return async;
            }
    
            public void setAsync(boolean async) {
                this.async = async;
            }
    
            @Override
            public boolean isRetainPayload() {
                return retainPayload;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/dependencies/index.md

    ///
    
    ## `async`にするかどうか
    
    依存関係は **FastAPI**(*path operation関数*と同じ)からも呼び出されるため、関数を定義する際にも同じルールが適用されます。
    
    `async def`や通常の`def`を使用することができます。
    
    また、通常の`def`*path operation関数*の中に`async def`を入れて依存関係を宣言したり、`async def`*path operation関数*の中に`def`を入れて依存関係を宣言したりすることなどができます。
    
    それは重要ではありません。**FastAPI** は何をすべきかを知っています。
    
    /// note | 備考
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. docs/es/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    En versiones recientes de Python, también hay un **async context manager**. Lo usarías con `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. misc/wasm/wasm_exec.html

    	(see https://caniuse.com/#feat=textencoder)
    	-->
    	<script src="../../lib/wasm/wasm_exec.js"></script>
    	<script>
    		if (!WebAssembly.instantiateStreaming) { // polyfill
    			WebAssembly.instantiateStreaming = async (resp, importObject) => {
    				const source = await (await resp).arrayBuffer();
    				return await WebAssembly.instantiate(source, importObject);
    			};
    		}
    
    		const go = new Go();
    		let mod, inst;
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Aug 30 19:15:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/request-files.md

    * `close()`: 🔐 📁.
    
    🌐 👫 👩‍🔬 `async` 👩‍🔬, 👆 💪 "⌛" 👫.
    
    🖼, 🔘 `async` *➡ 🛠️ 🔢* 👆 💪 🤚 🎚 ⏮️:
    
    ```Python
    contents = await myfile.read()
    ```
    
    🚥 👆 🔘 😐 `def` *➡ 🛠️ 🔢*, 👆 💪 🔐 `UploadFile.file` 🔗, 🖼:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | `async` 📡 ℹ
    
    🕐❔ 👆 ⚙️ `async` 👩‍🔬, **FastAPI** 🏃 📁 👩‍🔬 🧵 &amp; ⌛ 👫.
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/dependencies/index.md

    ## Usar `async` o no usar `async`
    
    Como las dependencias también serán llamadas por **FastAPI** (lo mismo que tus *path operation functions*), las mismas reglas aplican al definir tus funciones.
    
    Puedes usar `async def` o `def` normal.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top