Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for CancellationException (0.07 sec)

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

              acquireShared(-1);
            }
            return doCompletion;
          }
        }
    
        static CancellationException cancellationExceptionWithCause(
            @Nullable String message, @Nullable Throwable cause) {
          CancellationException exception = new CancellationException(message);
          exception.initCause(cause);
          return exception;
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        assertTrue(future.isCancelled());
        assertTrue(future.isDone());
        assertFalse(future.wasInterrupted());
        assertFalse(future.interruptTaskWasCalled);
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertThat(e).hasCauseThat().isNull();
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        assertTrue(future.isCancelled());
        assertTrue(future.isDone());
        assertFalse(future.wasInterrupted());
        assertFalse(future.interruptTaskWasCalled);
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertThat(e).hasCauseThat().isNull();
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import com.google.common.util.concurrent.FuturesGetCheckedInputs.TwoArgConstructorRuntimeException;
    import java.lang.ref.WeakReference;
    import java.net.URLClassLoader;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

    import com.google.common.base.Preconditions;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.time.Duration;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Future;
    import java.util.concurrent.Semaphore;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertThat(future.wasInterrupted()).isEqualTo(expectWasInterrupted);
    
        try {
          getDone(future);
          fail();
        } catch (CancellationException expected) {
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (CancellationException expected) {
        }
      }
    
      private static void assertDone(AbstractFuture<Integer> future) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

    import com.google.errorprone.annotations.ForOverride;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.RetainedLocalRef;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Executor;
    import org.jspecify.annotations.Nullable;
    
    /** Implementations of {@code Futures.transform*}. */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

    import com.google.errorprone.annotations.DoNotMock;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.lang.ref.WeakReference;
    import java.util.Locale;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    import org.jspecify.annotations.NullMarked;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/GcFinalization.java

    import com.google.errorprone.annotations.DoNotMock;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.lang.ref.WeakReference;
    import java.util.Locale;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    import org.jspecify.annotations.NullMarked;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

    import com.google.errorprone.annotations.ForOverride;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.RetainedLocalRef;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Executor;
    import org.jspecify.annotations.Nullable;
    
    /** Implementations of {@code Futures.transform*}. */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top