Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 748 for asyncId (0.05 seconds)

  1. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            @Test
            @DisplayName("createCancel should return Smb2CancelRequest with same mid and asyncId")
            void testCreateCancel() {
                long mid = 123L;
                long asyncId = 456L;
                testRequest.setMid(mid);
                testRequest.setAsyncId(asyncId);
    
                CommonServerMessageBlockRequest cancelRequest = testRequest.createCancel();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java

         *            The message ID of the request to cancel
         * @param asyncId
         *            The async ID for asynchronous operations (0 for synchronous)
         */
        public Smb2CancelRequest(final Configuration config, final long mid, final long asyncId) {
            super(config, SMB2_CANCEL);
            setMid(mid);
            setAsyncId(asyncId);
            if (asyncId != 0) {
                addFlags(SMB2_FLAGS_ASYNC_COMMAND);
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

         *
         * @return the asyncId
         */
        public final long getAsyncId() {
            return this.asyncId;
        }
    
        /**
         * Sets the asynchronous identifier for this message.
         *
         * @param asyncId
         *            the asyncId to set
         */
        public final void setAsyncId(final long asyncId) {
            this.asyncId = asyncId;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/util/SMBUtil.java

                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, // Reserved / AsyncId
                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, // TreeId / AsyncId
                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, // SessionId
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8K bytes
    - Click Count (0)
  6. docs/ru/docs/async.md

    Вы могли заметить, что `await` можно использовать только внутри функций, определённых с `async def`.
    
    Но при этом функции, определённые с `async def`, нужно «ожидать». Значит, функции с `async def` тоже можно вызывать только из функций, определённых с `async def`.
    
    Так что же с «яйцом и курицей» — как вызвать первую `async` функцию?
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 37.9K bytes
    - Click Count (0)
  7. docs/pt/docs/async.md

    ### Outras formas de código assíncrono { #other-forms-of-asynchronous-code }
    
    Esse estilo de usar `async` e `await` é relativamente novo na linguagem.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 25.2K bytes
    - Click Count (0)
  8. docs/fr/docs/async.md

    ### Autres formes de code asynchrone { #other-forms-of-asynchronous-code }
    
    L'utilisation d'`async` et `await` est relativement nouvelle dans ce langage.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 27.3K bytes
    - Click Count (0)
  9. docs/tr/docs/async.md

    ### Kendi async kodunuzu yazın { #write-your-own-async-code }
    
    Starlette (ve **FastAPI**) [AnyIO](https://anyio.readthedocs.io/en/stable/) üzerine kuruludur; bu sayede Python standart kütüphanesindeki [asyncio](https://docs.python.org/3/library/asyncio-task.html) ve [Trio](https://trio.readthedocs.io/en/stable/) ile uyumludur.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 23.7K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/async.md

    async def read_burgers():
        burgers = await get_burgers(2)
        return burgers
    ```
    
    ### 更多技術細節 { #more-technical-details }
    
    你可能已經注意到,`await` 只能在 `async def` 定義的函式內使用。
    
    但同時,使用 `async def` 定義的函式本身也必須被「等待」。所以,帶有 `async def` 的函式只能在其他使用 `async def` 定義的函式內呼叫。
    
    那麼,這就像「先有雞還是先有蛋」的問題,要如何呼叫第一個 `async` 函式呢?
    
    如果你使用 FastAPI,無需擔心這個問題,因為「第一個」函式將是你的*路徑操作函式*,FastAPI 會知道如何正確處理這個問題。
    
    但如果你想在沒有 FastAPI 的情況下使用 `async` / `await`,你也可以這樣做。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
Back to Top