Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 212 for avait (0.02 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

          queue.enqueue(incrementingEvent(counters, listener, 4));
          queue.enqueue(countDownEvent(latch));
          assertEquals(0, counters.size());
          queue.dispatch();
          latch.await();
          assertEquals(multiset(listener, 4), counters);
        } finally {
          service.shutdown();
        }
      }
    
      public void testEnqueueAndDispatch_multithreaded_withThrowingRunnable()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/websockets.md

    ///
    
    ## Aguardar por mensagens e enviar mensagens
    
    Em sua rota WebSocket você pode esperar (`await`) por mensagens e enviar mensagens.
    
    {*../../docs_src/websockets/tutorial001.py hl[48:52]*}
    
    Você pode receber e enviar dados binários, de texto e JSON.
    
    ## Tente você mesmo
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

              inetSocketAddress: InetSocketAddress,
              proxy: Proxy,
            ) {
              try {
                // Wait for request2 to guarantee we make 2 separate connections to the server.
                latch1.await()
              } catch (e: InterruptedException) {
                throw AssertionError(e)
              }
            }
    
            override fun connectionAcquired(
              call: Call,
              connection: Connection,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        @Override
        public void await() throws InterruptedException {
          lock.lock();
          try {
            condition.await();
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public boolean await(long time, TimeUnit unit) throws InterruptedException {
          lock.lock();
          try {
            return condition.await(time, unit);
          } finally {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            // When - Multiple threads get and release buffers
            for (int t = 0; t < threadCount; t++) {
                executor.submit(() -> {
                    try {
                        startLatch.await();
    
                        for (int i = 0; i < opsPerThread; i++) {
                            // Get buffer
                            byte[] buffer = BufferCache.getBuffer();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

            configHelper.setLoadCallback(() -> {
                latch.countDown();
                return 1;
            });
    
            configHelper.update();
    
            assertTrue("Load method should be called within 5 seconds", latch.await(5, TimeUnit.SECONDS));
            assertEquals(1, configHelper.getLoadCallCount());
        }
    
        public void test_update_multipleCallsIncrementLoadCount() throws InterruptedException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 00:03:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/async-tests.md

    ///
    
    ⤴️ 👥 💪 ✍ `AsyncClient` ⏮️ 📱, &amp; 📨 🔁 📨 ⚫️, ⚙️ `await`.
    
    {* ../../docs_src/async_tests/test_main.py hl[9:12] *}
    
    👉 🌓:
    
    ```Python
    response = client.get('/')
    ```
    
    ...👈 👥 ⚙️ ⚒ 👆 📨 ⏮️ `TestClient`.
    
    /// tip
    
    🗒 👈 👥 ⚙️ 🔁/⌛ ⏮️ 🆕 `AsyncClient` - 📨 🔁.
    
    ///
    
    ## 🎏 🔁 🔢 🤙
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/websockets.md

    ///
    
    ## Nachrichten erwarten und Nachrichten senden
    
    In Ihrer WebSocket-Route können Sie Nachrichten `await`en und Nachrichten senden.
    
    {* ../../docs_src/websockets/tutorial001.py hl[48:52] *}
    
    Sie können Binär-, Text- und JSON-Daten empfangen und senden.
    
    ## Es ausprobieren
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/websockets.md

    **FastAPI** proporciona el mismo `WebSocket` directamente solo como una conveniencia para ti, el desarrollador. Pero viene directamente de Starlette.
    
    ///
    
    ## Esperar mensajes y enviar mensajes
    
    En tu ruta de WebSocket puedes `await` para recibir mensajes y enviar mensajes.
    
    {* ../../docs_src/websockets/tutorial001.py hl[48:52] *}
    
    Puedes recibir y enviar datos binarios, de texto y JSON.
    
    ## Pruébalo
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. docs/ko/docs/advanced/async-tests.md

    {* ../../docs_src/async_tests/test_main.py hl[7] *}
    
    /// tip | 팁
    
    테스트 함수가 이제 `TestClient`를 사용할 때처럼 단순히 `def`가 아니라 `async def`로 작성된 점에 주목해주세요.
    
    ///
    
    그 다음에  `AsyncClient` 로 앱을 만들고 비동기 요청을 `await` 키워드로 보낼 수 있습니다:
    
    {* ../../docs_src/async_tests/test_main.py hl[9:12] *}
    
    위의 코드는:
    
    ```Python
    response = client.get('/')
    ```
    
    `TestClient` 에 요청을 보내던 것과 동일합니다.
    
    /// tip | 팁
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Dec 10 11:03:16 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top