Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for awaitClear (0.26 sec)

  1. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

              @Override
              public Object computeNext() {
                return new Object();
              }
            };
        WeakReference<Object> ref = new WeakReference<>(itr.next());
        GcFinalization.awaitClear(ref);
      }
    
      public void testDefaultBehaviorOfPeekForEmptyIteration() {
    
        AbstractIterator<Integer> empty =
            new AbstractIterator<Integer>() {
              private boolean alreadyCalledEndOfData;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/EnumsTest.java

      public void testGetIfPresent_doesNotPreventClassUnloading() throws Exception {
        WeakReference<?> shadowLoaderReference = doTestClassUnloading();
        GcFinalization.awaitClear(shadowLoaderReference);
      }
    
      // Create a second ClassLoader and use it to get a second version of the TestEnum class.
      // Run Enums.getIfPresent on that other TestEnum and then return a WeakReference containing the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

              @Override
              public Object computeNext() {
                return new Object();
              }
            };
        WeakReference<Object> ref = new WeakReference<>(itr.next());
        GcFinalization.awaitClear(ref);
      }
    
      public void testDefaultBehaviorOfPeekForEmptyIteration() {
    
        AbstractIterator<Integer> empty =
            new AbstractIterator<Integer>() {
              private boolean alreadyCalledEndOfData;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                  }
                },
                directExecutor());
        serializer.submit(toStringCallable(toBeGCed), directExecutor()).cancel(true);
        toBeGCed = null;
        GcFinalization.awaitClear(ref);
      }
    
      private static Callable<String> toStringCallable(final Object object) {
        return new Callable<String>() {
          @Override
          public String call() {
            return object.toString();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                  }
                },
                directExecutor());
        serializer.submit(toStringCallable(toBeGCed), directExecutor()).cancel(true);
        toBeGCed = null;
        GcFinalization.awaitClear(ref);
      }
    
      private static Callable<String> toStringCallable(final Object object) {
        return new Callable<String>() {
          @Override
          public String call() {
            return object.toString();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      public void testGetChecked_classUnloading() throws Exception {
        WeakReference<?> classUsedByGetChecked = doTestClassUnloading();
        GcFinalization.awaitClear(classUsedByGetChecked);
      }
    
      /**
       * Loads {@link WillBeUnloadedException} in a separate {@code ClassLoader}, calls {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

         * the futures are released once the combiner is done running. But we happen to provide this
         * earlier cleanup at the moment, so we're testing it.
         */
        GcFinalization.awaitClear(future1Ref);
        GcFinalization.awaitClear(future2Ref);
      }
    
      @AndroidIncompatible
      @J2ktIncompatible
      @GwtIncompatible
      public void testWhenAllComplete_releasesInputFuturesUponCancellation() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

         * the futures are released once the combiner is done running. But we happen to provide this
         * earlier cleanup at the moment, so we're testing it.
         */
        GcFinalization.awaitClear(future1Ref);
        GcFinalization.awaitClear(future2Ref);
      }
    
      @AndroidIncompatible
      @J2ktIncompatible
      @GwtIncompatible
      public void testWhenAllComplete_releasesInputFuturesUponCancellation() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top