Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for awaitPong (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        }
      }
    
      /** For testing: sends a ping and waits for a pong. */
      @Throws(InterruptedException::class)
      fun writePingAndAwaitPong() {
        writePing()
        awaitPong()
      }
    
      /** For testing: sends a ping to be awaited with [awaitPong]. */
      @Throws(InterruptedException::class)
      fun writePing() {
        this.withLock {
          awaitPingsSent++
        }
    
        // 0x4f 0x4b 0x6f 0x6b is "OKok".
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

            throw ConnectionShutdownException()
          }
        }
        connection.writePing()
        connection.shutdown(ErrorCode.PROTOCOL_ERROR)
        assertThat(connection.openStreamCount()).isEqualTo(1)
        connection.awaitPong() // Prevent the peer from exiting prematurely.
    
        // Verify the peer received what was expected.
        val synStream1 = peer.takeFrame()
        assertThat(synStream1.type).isEqualTo(Http2.TYPE_HEADERS)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

            new Object() {
              @Override
              protected void finalize() {
                future.set(null);
              }
            };
        x = null; // Hint to the JIT that x is unreachable
        GcFinalization.awaitDone(future);
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      public void testAwaitDone_Future_Cancel() {
        final SettableFuture<@Nullable Void> future = SettableFuture.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

            new Object() {
              @Override
              protected void finalize() {
                future.set(null);
              }
            };
        x = null; // Hint to the JIT that x is unreachable
        GcFinalization.awaitDone(future);
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      public void testAwaitDone_Future_Cancel() {
        final SettableFuture<@Nullable Void> future = SettableFuture.create();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/GcFinalization.java

       *
       * <pre>{@code
       * awaitDone(new FinalizationPredicate() {
       *   public boolean isDone() {
       *     return ref.get() == null;
       *   }
       * });
       * }</pre>
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      public static void awaitClear(WeakReference<?> ref) {
        awaitDone(
            new FinalizationPredicate() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  6. .github/workflows/stale-issues.yml

              close-issue-reason: completed
              # List of labels to remove when issues/PRs unstale. 
              labels-to-remove-when-unstale: 'stat:awaiting response'
              only-labels: "stat:awaiting response"
              stale-issue-message: > 
                This issue is stale because it has been open for 7 days with no activity.
                It will be closed if no further activity occurs. Thank you.
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Nov 23 20:04:38 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       *
       * <pre>{@code
       * awaitDone(new FinalizationPredicate() {
       *   public boolean isDone() {
       *     return ref.get() == null;
       *   }
       * });
       * }</pre>
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      public static void awaitClear(WeakReference<?> ref) {
        awaitDone(
            new FinalizationPredicate() {
              @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. .github/actions/notify-translations/app/main.py

    import random
    import sys
    import time
    from pathlib import Path
    from typing import Any, Dict, List, Union, cast
    
    import httpx
    from github import Github
    from pydantic import BaseModel, BaseSettings, SecretStr
    
    awaiting_label = "awaiting-review"
    lang_all_label = "lang-all"
    approved_label = "approved-2"
    translations_path = Path(__file__).parent / "translations.yml"
    
    github_graphql_url = "https://api.github.com/graphql"
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

        assertTrue(file.exists());
        out.close();
    
        // Make sure that finalize deletes the file
        out = null;
    
        // times out and throws RuntimeException on failure
        GcFinalization.awaitDone(
            new GcFinalization.FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return !file.exists();
              }
            });
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 08 21:20:23 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  10. .github/workflows/label-approved.yml

          with:
            token: ${{ secrets.FASTAPI_LABEL_APPROVED }}
            config: >
              {
                "approved-1":
                  {
                    "number": 1,
                    "await_label": "awaiting-review"
                  }
    Others
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 18:43:10 GMT 2024
    - 610 bytes
    - Viewed (0)
Back to top