Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for FinalizationPredicate (0.17 sec)

  1. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

      public interface FinalizationPredicate {
        boolean isDone();
      }
    
      /**
       * Waits until the given weak reference is cleared, invoking the garbage collector as necessary to
       * try to ensure that this will happen.
       *
       * <p>This is a convenience method, equivalent to:
       *
       * <pre>{@code
       * awaitDone(new FinalizationPredicate() {
       *   public boolean isDone() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

     */
    
    package com.google.common.testing;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.GcFinalization.FinalizationPredicate;
    import com.google.common.util.concurrent.SettableFuture;
    import java.lang.ref.WeakReference;
    import java.util.WeakHashMap;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.atomic.AtomicBoolean;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/GcFinalization.java

      public interface FinalizationPredicate {
        boolean isDone();
      }
    
      /**
       * Waits until the given weak reference is cleared, invoking the garbage collector as necessary to
       * try to ensure that this will happen.
       *
       * <p>This is a convenience method, equivalent to:
       *
       * <pre>{@code
       * awaitDone(new FinalizationPredicate() {
       *   public boolean isDone() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

     */
    
    package com.google.common.testing;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.GcFinalization.FinalizationPredicate;
    import com.google.common.util.concurrent.SettableFuture;
    import java.lang.ref.WeakReference;
    import java.util.WeakHashMap;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.atomic.AtomicBoolean;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

      }
    
    
      public void testFinalizeReferentCalled() {
        final MockReference reference = new MockReference(frq = new FinalizableReferenceQueue());
    
        GcFinalization.awaitDone(
            new GcFinalization.FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return reference.finalizeReferentCalled;
              }
            });
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top