Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 62 for CancellationException (0.21 sec)

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

    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    import static org.junit.Assert.assertThrows;
    
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

       *     {@code RuntimeException} as its cause
       * @throws ExecutionError if {@code get} throws an {@code ExecutionException} with an {@code
       *     Error} as its cause
       * @throws CancellationException if {@code get} throws a {@code CancellationException}
       * @throws IllegalArgumentException if {@code exceptionClass} extends {@code RuntimeException} or
       *     does not have a suitable constructor
       * @since 19.0 (in 10.0 as {@code get})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /** Unit tests for {@link Futures#getUnchecked(Future)}. */
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /** Unit tests for {@link Futures#getUnchecked(Future)}. */
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java

    import com.google.common.util.concurrent.AbstractFutureBenchmarks.Facade;
    import com.google.common.util.concurrent.AbstractFutureBenchmarks.Impl;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeoutException;
    
    /** A benchmark that times how long it takes to add a given number of */
    @VmOptions({"-Xms8g", "-Xmx8g"})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. okhttp-coroutines/README.md

    that by default Kotlin's Dispatchers are not used.
    
    Cancellation if implemented sensibly in both directions.
    Cancelling a coroutine scope, will cancel the call.
    Cancelling a call, will throw a CancellationException
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Nov 09 15:47:27 UTC 2023
    - 609 bytes
    - Viewed (0)
  7. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

    import java.util.concurrent.ExecutionException
    import java.util.concurrent.ExecutorService
    import java.util.concurrent.Executors
    import java.util.concurrent.TimeUnit
    import kotlin.coroutines.cancellation.CancellationException
    import okio.Buffer
    import org.junit.After
    import org.junit.Assert.assertEquals
    import org.junit.Assert.assertTrue
    import org.junit.Test
    import org.junit.runner.RunWith
    
    /**
     * Android HttpEngine.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.util.concurrent.TestExceptions.SomeError;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.Executor;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Test for {@link FutureCallback}.
     *
     * @author Anthony Zana
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top